generator-ngstack
Version:
Based on DaftMonk generator-angular-fullstack, this is a custom mean stack yeoman generator
28 lines (21 loc) • 406 B
text/coffeescript
'use strict'
(->
### @ngInject ###
User = ($resource) ->
$resource '/api/users/:id/:controller',
id: '@_id'
,
changePassword:
method: 'PUT'
params:
controller: 'password'
get:
method: 'GET'
params:
id: 'me'
User
.$inject = ['$resource']
angular
.module '<%= scriptAppName %>'
.factory 'User', User
)()