dollar-inject

1.0.1 • Public • Published

dollar-inject

Greenkeeper badge

$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) ->
    ...
]

Package Sidebar

Install

npm i dollar-inject

Weekly Downloads

119

Version

1.0.1

License

ISC

Last publish

Collaborators

  • marcbachmann