Open britter opened 9 years ago
In ES5 this should look like:
function MyFunction(Service1) {
this.service1 = Service1;
}
MyFunction.$inject = ['Service1'];
@bripkens can you confirm?
@britter: Right, although from an AST point of view there are multiple ways to specify an $injector
property. Although the one you mentioned is probably the most common.
As discussed in #138, ng_di currently doesn't allow property based dependency specifications like:
Proposal: add possibility to configure
'ng_di': [2, 'property']