0.0.3 • Published 9 years ago

nginjector v0.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

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

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago