MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / factory

Function factory

code/songhop/www/lib/angular/angular.js:4030–4034  ·  view source on GitHub ↗
(name, factoryFn, enforce)

Source from the content-addressed store, hash-verified

4028 }
4029
4030 function factory(name, factoryFn, enforce) {
4031 return provider(name, {
4032 $get: enforce !== false ? enforceReturnValue(name, factoryFn) : factoryFn
4033 });
4034 }
4035
4036 function service(name, constructor) {
4037 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