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

Function makeInjectable

lib/test/angular/1.8.0/angular.js:8969–8977  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

8967
8968 function factory($injector) {
8969 function makeInjectable(fn) {
8970 if (isFunction(fn) || isArray(fn)) {
8971 return /** @this */ function(tElement, tAttrs) {
8972 return $injector.invoke(fn, this, {$element: tElement, $attrs: tAttrs});
8973 };
8974 } else {
8975 return fn;
8976 }
8977 }
8978
8979 var template = (!options.template && !options.templateUrl ? '' : options.template);
8980 var ddo = {

Callers 1

factoryFunction · 0.70

Calls 2

isFunctionFunction · 0.70
isArrayFunction · 0.70

Tested by

no test coverage detected