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

Function constant

test/angular/1.7/angular.js:5000–5004  ·  view source on GitHub ↗
(name, value)

Source from the content-addressed store, hash-verified

4998 function value(name, val) { return factory(name, valueFn(val), false); }
4999
5000 function constant(name, value) {
5001 assertNotHasOwnProperty(name, 'constant');
5002 providerCache[name] = value;
5003 instanceCache[name] = value;
5004 }
5005
5006 function decorator(serviceName, decorFn) {
5007 var origProvider = providerInjector.get(serviceName + providerSuffix),

Callers

nothing calls this directly

Calls 1

assertNotHasOwnPropertyFunction · 0.70

Tested by

no test coverage detected