nginjector

0.0.3 • Public • Published

ngInjector.es6

quick access to the angular DI from external world

var injector = require('ngInjector');

var params = {
    id: 42
};

injector()(function($state) {
    $state.go('my.sub.state', params)
});

By default it assumes you've put your ng-app attribute on the HTML tag.

If not, you can use a selector too : ngInjector('#shoppingcart')

Install with npm install nginjector --save

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    2
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i nginjector

Weekly Downloads

2

Version

0.0.3

License

MIT

Last publish

Collaborators

  • revolunet