invoke(fn, [self], [locals]);
Invoke the method and supply the method arguments from the $injector
.
Parameters
Param | Type | Details |
---|---|---|
fn | function() Array.<(string|function())> | The injectable function to invoke. Function parameters are injected according to the $inject Annotation rules. |
self (optional) | Object | The |
locals (optional) | Object | Optional object. If preset then any argument names are read from this object first, before the |
Returns
* |
the value returned by the invoked |
Please login to continue.