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

Function makeInjectable

lib/test/angular/1.5.0/angular.js:7592–7600  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

7590
7591 function factory($injector) {
7592 function makeInjectable(fn) {
7593 if (isFunction(fn) || isArray(fn)) {
7594 return function(tElement, tAttrs) {
7595 return $injector.invoke(fn, this, {$element: tElement, $attrs: tAttrs});
7596 };
7597 } else {
7598 return fn;
7599 }
7600 }
7601
7602 var template = (!options.template && !options.templateUrl ? '' : options.template);
7603 return {

Callers 1

factoryFunction · 0.70

Calls 2

isFunctionFunction · 0.70
isArrayFunction · 0.50

Tested by

no test coverage detected