MCPcopy
hub / github.com/angular-ui/ui-router / addIdentifier

Function addIdentifier

test/angular/1.4/angular.js:9469–9477  ·  view source on GitHub ↗
(locals, identifier, instance, name)

Source from the content-addressed store, hash-verified

9467 };
9468
9469 function addIdentifier(locals, identifier, instance, name) {
9470 if (!(locals && isObject(locals.$scope))) {
9471 throw minErr('$controller')('noscp',
9472 "Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",
9473 name, identifier);
9474 }
9475
9476 locals.$scope[identifier] = instance;
9477 }
9478 }];
9479}
9480

Callers 1

$ControllerProviderFunction · 0.70

Calls 2

isObjectFunction · 0.70
minErrFunction · 0.70

Tested by

no test coverage detected