MCPcopy Index your code
hub / github.com/angular-ui/ui-router / service

Function service

test/angular/1.2/angular.js:3844–3848  ·  view source on GitHub ↗
(name, constructor)

Source from the content-addressed store, hash-verified

3842 function factory(name, factoryFn) { return provider(name, { $get: factoryFn }); }
3843
3844 function service(name, constructor) {
3845 return factory(name, ['$injector', function($injector) {
3846 return $injector.instantiate(constructor);
3847 }]);
3848 }
3849
3850 function value(name, val) { return factory(name, valueFn(val)); }
3851

Callers

nothing calls this directly

Calls 1

factoryFunction · 0.70

Tested by

no test coverage detected