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

Function factory

test/angular/1.3/angular.js:4080–4084  ·  view source on GitHub ↗
(name, factoryFn, enforce)

Source from the content-addressed store, hash-verified

4078 }
4079
4080 function factory(name, factoryFn, enforce) {
4081 return provider(name, {
4082 $get: enforce !== false ? enforceReturnValue(name, factoryFn) : factoryFn
4083 });
4084 }
4085
4086 function service(name, constructor) {
4087 return factory(name, ['$injector', function($injector) {

Callers 4

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

Calls 2

providerFunction · 0.70
enforceReturnValueFunction · 0.70

Tested by

no test coverage detected