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

Function constant

test/angular/1.6/angular.js:4972–4976  ·  view source on GitHub ↗
(name, value)

Source from the content-addressed store, hash-verified

4970 function value(name, val) { return factory(name, valueFn(val), false); }
4971
4972 function constant(name, value) {
4973 assertNotHasOwnProperty(name, 'constant');
4974 providerCache[name] = value;
4975 instanceCache[name] = value;
4976 }
4977
4978 function decorator(serviceName, decorFn) {
4979 var origProvider = providerInjector.get(serviceName + providerSuffix),

Callers

nothing calls this directly

Calls 1

assertNotHasOwnPropertyFunction · 0.70

Tested by

no test coverage detected