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

Function enforceReturnValue

test/angular/1.5/angular.js:4607–4615  ·  view source on GitHub ↗
(name, factory)

Source from the content-addressed store, hash-verified

4605 }
4606
4607 function enforceReturnValue(name, factory) {
4608 return /** @this */ function enforcedReturnValue() {
4609 var result = instanceInjector.invoke(factory, this);
4610 if (isUndefined(result)) {
4611 throw $injectorMinErr('undef', 'Provider \'{0}\' must return a value from $get factory method.', name);
4612 }
4613 return result;
4614 };
4615 }
4616
4617 function factory(name, factoryFn, enforce) {
4618 return provider(name, {

Callers 1

factoryFunction · 0.70

Calls 1

isUndefinedFunction · 0.70

Tested by

no test coverage detected