MCPcopy
hub / github.com/angular-ui/ui-router / service

Function service

test/angular/1.4/angular.js:4436–4440  ·  view source on GitHub ↗
(name, constructor)

Source from the content-addressed store, hash-verified

4434 }
4435
4436 function service(name, constructor) {
4437 return factory(name, ['$injector', function($injector) {
4438 return $injector.instantiate(constructor);
4439 }]);
4440 }
4441
4442 function value(name, val) { return factory(name, valueFn(val), false); }
4443

Callers

nothing calls this directly

Calls 1

factoryFunction · 0.70

Tested by

no test coverage detected