dollar-inject
v1.0.1
Published
Sets the arguments passed into dollarInject() as $inject on the method
Downloads
58
Maintainers
Readme
dollar-inject
$inject = require('dollar-inject')
sessionController = $inject 'session', '$http',
(session, $http) ->
...
basically does
function sessionController (session, $http) {}
sessionController.$inject = ['session', '$http']
Why?
Because we're still using coffee-script
And the bracket notation is a bit annoying sometimes:
sessionController = ['session', '$http', (session, $http) ->
...
]