MCPcopy Create free account
hub / github.com/angular-ui/ui-router / makeInjectable

Function makeInjectable

test/angular/1.5/angular.js:7994–8002  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

7992
7993 function factory($injector) {
7994 function makeInjectable(fn) {
7995 if (isFunction(fn) || isArray(fn)) {
7996 return /** @this */ function(tElement, tAttrs) {
7997 return $injector.invoke(fn, this, {$element: tElement, $attrs: tAttrs});
7998 };
7999 } else {
8000 return fn;
8001 }
8002 }
8003
8004 var template = (!options.template && !options.templateUrl ? '' : options.template);
8005 var ddo = {

Callers 1

factoryFunction · 0.70

Calls 2

isArrayFunction · 0.85
isFunctionFunction · 0.70

Tested by

no test coverage detected