MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / factory

Function factory

web/static/bower_components/angular/angular.js:4338–4342  ·  view source on GitHub ↗
(name, factoryFn, enforce)

Source from the content-addressed store, hash-verified

4336 }
4337
4338 function factory(name, factoryFn, enforce) {
4339 return provider(name, {
4340 $get: enforce !== false ? enforceReturnValue(name, factoryFn) : factoryFn
4341 });
4342 }
4343
4344 function service(name, constructor) {
4345 return factory(name, ['$injector', function($injector) {

Callers 5

ensureFunction · 0.85
serviceFunction · 0.85
valueFunction · 0.85
getServiceFunction · 0.85
intro.jsFile · 0.85

Calls 2

providerFunction · 0.85
enforceReturnValueFunction · 0.85

Tested by

no test coverage detected