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

Function factory

test/angular/1.7/angular.js:4986–4990  ·  view source on GitHub ↗
(name, factoryFn, enforce)

Source from the content-addressed store, hash-verified

4984 }
4985
4986 function factory(name, factoryFn, enforce) {
4987 return provider(name, {
4988 $get: enforce !== false ? enforceReturnValue(name, factoryFn) : factoryFn
4989 });
4990 }
4991
4992 function service(name, constructor) {
4993 return factory(name, ['$injector', function($injector) {

Callers 5

ensureFunction · 0.70
serviceFunction · 0.70
valueFunction · 0.70
getServiceFunction · 0.70
invokeFirstDriverFunction · 0.70

Calls 5

providerFunction · 0.70
enforceReturnValueFunction · 0.70
identifierForControllerFunction · 0.70
makeInjectableFunction · 0.70
forEachFunction · 0.70

Tested by

no test coverage detected