MCPcopy
hub / github.com/angular-ui/ui-grid / factory

Function factory

lib/test/angular/1.5.0/angular.js:4451–4455  ·  view source on GitHub ↗
(name, factoryFn, enforce)

Source from the content-addressed store, hash-verified

4449 }
4450
4451 function factory(name, factoryFn, enforce) {
4452 return provider(name, {
4453 $get: enforce !== false ? enforceReturnValue(name, factoryFn) : factoryFn
4454 });
4455 }
4456
4457 function service(name, constructor) {
4458 return factory(name, ['$injector', function($injector) {

Callers 5

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

Calls 4

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

Tested by

no test coverage detected