MCPcopy Create free account
hub / github.com/angular-ui/ui-router / constant

Function constant

test/angular/1.5/angular.js:4631–4635  ·  view source on GitHub ↗
(name, value)

Source from the content-addressed store, hash-verified

4629 function value(name, val) { return factory(name, valueFn(val), false); }
4630
4631 function constant(name, value) {
4632 assertNotHasOwnProperty(name, 'constant');
4633 providerCache[name] = value;
4634 instanceCache[name] = value;
4635 }
4636
4637 function decorator(serviceName, decorFn) {
4638 var origProvider = providerInjector.get(serviceName + providerSuffix),

Callers

nothing calls this directly

Calls 1

assertNotHasOwnPropertyFunction · 0.70

Tested by

no test coverage detected