angular-assign
v2.0.9
Published
Easily assign services to controller es6 classes
Downloads
12
Readme
How to use (depends on dependency annotations):
import assign from 'angular-assign';
class SampleController {
constructor($scope, $state, MyService) {
'ngInject';
assign(arguments).to(this);
}
doStuff() {
this.MyService.doStuff();
// ...
}
}