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

Function addIdentifier

test/angular/1.7/angular.js:11731–11739  ·  view source on GitHub ↗
(locals, identifier, instance, name)

Source from the content-addressed store, hash-verified

11729 };
11730
11731 function addIdentifier(locals, identifier, instance, name) {
11732 if (!(locals && isObject(locals.$scope))) {
11733 throw minErr('$controller')('noscp',
11734 'Cannot export controller \'{0}\' as \'{1}\'! No $scope object provided via `locals`.',
11735 name, identifier);
11736 }
11737
11738 locals.$scope[identifier] = instance;
11739 }
11740 }];
11741}
11742

Callers 1

$ControllerProviderFunction · 0.70

Calls 2

isObjectFunction · 0.70
minErrFunction · 0.70

Tested by

no test coverage detected