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

Function makeInjectable

test/angular/1.7/angular.js:8904–8912  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

8902
8903 function factory($injector) {
8904 function makeInjectable(fn) {
8905 if (isFunction(fn) || isArray(fn)) {
8906 return /** @this */ function(tElement, tAttrs) {
8907 return $injector.invoke(fn, this, {$element: tElement, $attrs: tAttrs});
8908 };
8909 } else {
8910 return fn;
8911 }
8912 }
8913
8914 var template = (!options.template && !options.templateUrl ? '' : options.template);
8915 var ddo = {

Callers 1

factoryFunction · 0.70

Calls 2

isArrayFunction · 0.85
isFunctionFunction · 0.70

Tested by

no test coverage detected