diff --git a/lib/services.template.ejs b/lib/services.template.ejs index 7b1df83..c05bdf5 100644 --- a/lib/services.template.ejs +++ b/lib/services.template.ejs @@ -57,8 +57,8 @@ var module = angular.module(<%-: moduleName | q %>, ['ngResource']); */ module.factory( <%-: modelName | q %>, - ['LoopBackResource', 'LoopBackAuth', '$injector', function(Resource, LoopBackAuth, $injector) { - var R = Resource( + ['LoopBackResource', 'LoopBackAuth', '$injector', function(LoopBackResource, LoopBackAuth, $injector) { + var R = LoopBackResource( urlBase + <%-: meta.ctor.getFullPath() | q %>, <% /* Constructor arguments are hardcoded for now.