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

Function service

test/angular/1.6/angular.js:4964–4968  ·  view source on GitHub ↗
(name, constructor)

Source from the content-addressed store, hash-verified

4962 }
4963
4964 function service(name, constructor) {
4965 return factory(name, ['$injector', function($injector) {
4966 return $injector.instantiate(constructor);
4967 }]);
4968 }
4969
4970 function value(name, val) { return factory(name, valueFn(val), false); }
4971

Callers

nothing calls this directly

Calls 1

factoryFunction · 0.70

Tested by

no test coverage detected