MCPcopy
hub / github.com/angular-ui/ui-router / constant

Function constant

test/angular/1.4/angular.js:4444–4448  ·  view source on GitHub ↗
(name, value)

Source from the content-addressed store, hash-verified

4442 function value(name, val) { return factory(name, valueFn(val), false); }
4443
4444 function constant(name, value) {
4445 assertNotHasOwnProperty(name, 'constant');
4446 providerCache[name] = value;
4447 instanceCache[name] = value;
4448 }
4449
4450 function decorator(serviceName, decorFn) {
4451 var origProvider = providerInjector.get(serviceName + providerSuffix),

Callers

nothing calls this directly

Calls 1

assertNotHasOwnPropertyFunction · 0.70

Tested by

no test coverage detected