MCPcopy Create free account
hub / github.com/angular-ui/ui-grid / service

Function service

lib/test/angular/1.8.0/angular.js:5057–5061  ·  view source on GitHub ↗
(name, constructor)

Source from the content-addressed store, hash-verified

5055 }
5056
5057 function service(name, constructor) {
5058 return factory(name, ['$injector', function($injector) {
5059 return $injector.instantiate(constructor);
5060 }]);
5061 }
5062
5063 function value(name, val) { return factory(name, valueFn(val), false); }
5064

Callers

nothing calls this directly

Calls 1

factoryFunction · 0.70

Tested by

no test coverage detected