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

Function service

test/angular/1.5/angular.js:4623–4627  ·  view source on GitHub ↗
(name, constructor)

Source from the content-addressed store, hash-verified

4621 }
4622
4623 function service(name, constructor) {
4624 return factory(name, ['$injector', function($injector) {
4625 return $injector.instantiate(constructor);
4626 }]);
4627 }
4628
4629 function value(name, val) { return factory(name, valueFn(val), false); }
4630

Callers

nothing calls this directly

Calls 1

factoryFunction · 0.70

Tested by

no test coverage detected