ng-inject
Decorator that wraps a class in a DI injector for the given dependencies.
Dependencies are assigned to the prototype, and can be referenced from within the Class as this.$name
.
Usage
; // decorator takes a list of angular dependency names:@ { // both `$scope` and `config` are injected via DI: this$scopeconfig = thisconfig; } { this$scopevalue = 1; }
License
BSD 3-Clause