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

Function injectionArgs

test/angular/1.7/angular.js:5100–5114  ·  view source on GitHub ↗
(fn, locals, serviceName)

Source from the content-addressed store, hash-verified

5098
5099
5100 function injectionArgs(fn, locals, serviceName) {
5101 var args = [],
5102 $inject = createInjector.$$annotate(fn, strictDi, serviceName);
5103
5104 for (var i = 0, length = $inject.length; i < length; i++) {
5105 var key = $inject[i];
5106 if (typeof key !== 'string') {
5107 throw $injectorMinErr('itkn',
5108 'Incorrect injection token! Expected service name as string, got {0}', key);
5109 }
5110 args.push(locals && locals.hasOwnProperty(key) ? locals[key] :
5111 getService(key, serviceName));
5112 }
5113 return args;
5114 }
5115
5116 function isClass(func) {
5117 // Support: IE 9-11 only

Callers 2

invokeFunction · 0.70
instantiateFunction · 0.70

Calls 1

getServiceFunction · 0.70

Tested by

no test coverage detected