MCPcopy
hub / github.com/angular-ui/ui-grid / injectionArgs

Function injectionArgs

lib/test/angular/1.8.0/angular.js:5165–5179  ·  view source on GitHub ↗
(fn, locals, serviceName)

Source from the content-addressed store, hash-verified

5163
5164
5165 function injectionArgs(fn, locals, serviceName) {
5166 var args = [],
5167 $inject = createInjector.$$annotate(fn, strictDi, serviceName);
5168
5169 for (var i = 0, length = $inject.length; i < length; i++) {
5170 var key = $inject[i];
5171 if (typeof key !== 'string') {
5172 throw $injectorMinErr('itkn',
5173 'Incorrect injection token! Expected service name as string, got {0}', key);
5174 }
5175 args.push(locals && locals.hasOwnProperty(key) ? locals[key] :
5176 getService(key, serviceName));
5177 }
5178 return args;
5179 }
5180
5181 function isClass(func) {
5182 // Support: IE 9-11 only

Callers 2

invokeFunction · 0.70
instantiateFunction · 0.70

Calls 1

getServiceFunction · 0.70

Tested by

no test coverage detected