We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f222cfb commit cf38d62Copy full SHA for cf38d62
app/templates/client/components/auth(auth)/user.service(js).js
@@ -1,7 +1,8 @@
1
'use strict';
2
3
-angular.module('<%= scriptAppName %>.auth')
4
- .factory('User', function ($resource) {
+(function() {
+
5
+ function UserResource($resource) {
6
return $resource('/api/users/:id/:controller', {
7
id: '@_id'
8
},
@@ -19,4 +20,9 @@ angular.module('<%= scriptAppName %>.auth')
19
20
}
21
22
});
- });
23
+ }
24
25
+ angular.module('<%= scriptAppName %>.auth')
26
+ .factory('User', UserResource);
27
28
+})();
0 commit comments