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

Function makeInjectable

lib/test/angular/1.7.0/angular.js:8521–8529  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

8519
8520 function factory($injector) {
8521 function makeInjectable(fn) {
8522 if (isFunction(fn) || isArray(fn)) {
8523 return /** @this */ function(tElement, tAttrs) {
8524 return $injector.invoke(fn, this, {$element: tElement, $attrs: tAttrs});
8525 };
8526 } else {
8527 return fn;
8528 }
8529 }
8530
8531 var template = (!options.template && !options.templateUrl ? '' : options.template);
8532 var ddo = {

Callers 1

factoryFunction · 0.70

Calls 2

isFunctionFunction · 0.70
isArrayFunction · 0.70

Tested by

no test coverage detected