MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / makeInjectable

Function makeInjectable

lib/test/angular/1.6.7/angular.js:8382–8390  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

8380
8381 function factory($injector) {
8382 function makeInjectable(fn) {
8383 if (isFunction(fn) || isArray(fn)) {
8384 return /** @this */ function(tElement, tAttrs) {
8385 return $injector.invoke(fn, this, {$element: tElement, $attrs: tAttrs});
8386 };
8387 } else {
8388 return fn;
8389 }
8390 }
8391
8392 var template = (!options.template && !options.templateUrl ? '' : options.template);
8393 var ddo = {

Callers 1

factoryFunction · 0.70

Calls 2

isFunctionFunction · 0.70
isArrayFunction · 0.50

Tested by

no test coverage detected