-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
Hi,
creating a new angular-fullstack app with CoffeeScript and any authentication should create the 'Auth' factory in client/components/auth/.
I guess you simply translated the JS to CoffeeScript in your generator, because it does something like that:
what should be
angular.module(...).factory('Auth', function Auth (....){..})
in JS, is then created as that in CS:
angular.module(...).factory 'Auth', Auth = (....)-> ....
I'm not 100% sure how an assignment is handled as an argument in JS, but obviously it does not pass the function then, because I get an injection error.
Simply leaving out the name of the function fixes the problem.
Metadata
Metadata
Assignees
Labels
No labels