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

Function addIdentifier

test/angular/1.3/angular.js:8533–8541  ·  view source on GitHub ↗
(locals, identifier, instance, name)

Source from the content-addressed store, hash-verified

8531 };
8532
8533 function addIdentifier(locals, identifier, instance, name) {
8534 if (!(locals && isObject(locals.$scope))) {
8535 throw minErr('$controller')('noscp',
8536 "Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",
8537 name, identifier);
8538 }
8539
8540 locals.$scope[identifier] = instance;
8541 }
8542 }];
8543}
8544

Callers 1

$ControllerProviderFunction · 0.70

Calls 2

isObjectFunction · 0.70
minErrFunction · 0.70

Tested by

no test coverage detected