MCPcopy Index your code
hub / github.com/angular-ui/ui-router / enforceReturnValue

Function enforceReturnValue

test/angular/1.7/angular.js:4976–4984  ·  view source on GitHub ↗
(name, factory)

Source from the content-addressed store, hash-verified

4974 }
4975
4976 function enforceReturnValue(name, factory) {
4977 return /** @this */ function enforcedReturnValue() {
4978 var result = instanceInjector.invoke(factory, this);
4979 if (isUndefined(result)) {
4980 throw $injectorMinErr('undef', 'Provider \'{0}\' must return a value from $get factory method.', name);
4981 }
4982 return result;
4983 };
4984 }
4985
4986 function factory(name, factoryFn, enforce) {
4987 return provider(name, {

Callers 1

factoryFunction · 0.70

Calls 1

isUndefinedFunction · 0.70

Tested by

no test coverage detected