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

Function injectionArgs

test/angular/1.6/angular.js:5072–5086  ·  view source on GitHub ↗
(fn, locals, serviceName)

Source from the content-addressed store, hash-verified

5070
5071
5072 function injectionArgs(fn, locals, serviceName) {
5073 var args = [],
5074 $inject = createInjector.$$annotate(fn, strictDi, serviceName);
5075
5076 for (var i = 0, length = $inject.length; i < length; i++) {
5077 var key = $inject[i];
5078 if (typeof key !== 'string') {
5079 throw $injectorMinErr('itkn',
5080 'Incorrect injection token! Expected service name as string, got {0}', key);
5081 }
5082 args.push(locals && locals.hasOwnProperty(key) ? locals[key] :
5083 getService(key, serviceName));
5084 }
5085 return args;
5086 }
5087
5088 function isClass(func) {
5089 // Support: IE 9-11 only

Callers 2

invokeFunction · 0.70
instantiateFunction · 0.70

Calls 1

getServiceFunction · 0.70

Tested by

no test coverage detected