MCPcopy Index your code
hub / github.com/angular-ui/ui-router / injectionArgs

Function injectionArgs

test/angular/1.5/angular.js:4730–4744  ·  view source on GitHub ↗
(fn, locals, serviceName)

Source from the content-addressed store, hash-verified

4728
4729
4730 function injectionArgs(fn, locals, serviceName) {
4731 var args = [],
4732 $inject = createInjector.$$annotate(fn, strictDi, serviceName);
4733
4734 for (var i = 0, length = $inject.length; i < length; i++) {
4735 var key = $inject[i];
4736 if (typeof key !== 'string') {
4737 throw $injectorMinErr('itkn',
4738 'Incorrect injection token! Expected service name as string, got {0}', key);
4739 }
4740 args.push(locals && locals.hasOwnProperty(key) ? locals[key] :
4741 getService(key, serviceName));
4742 }
4743 return args;
4744 }
4745
4746 function isClass(func) {
4747 // IE 9-11 do not support classes and IE9 leaks with the code below.

Callers 2

invokeFunction · 0.70
instantiateFunction · 0.70

Calls 1

getServiceFunction · 0.70

Tested by

no test coverage detected