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

Function addIdentifier

test/angular/1.5/angular.js:10616–10624  ·  view source on GitHub ↗
(locals, identifier, instance, name)

Source from the content-addressed store, hash-verified

10614 };
10615
10616 function addIdentifier(locals, identifier, instance, name) {
10617 if (!(locals && isObject(locals.$scope))) {
10618 throw minErr('$controller')('noscp',
10619 'Cannot export controller \'{0}\' as \'{1}\'! No $scope object provided via `locals`.',
10620 name, identifier);
10621 }
10622
10623 locals.$scope[identifier] = instance;
10624 }
10625 }];
10626}
10627

Callers 1

$ControllerProviderFunction · 0.70

Calls 2

isObjectFunction · 0.70
minErrFunction · 0.70

Tested by

no test coverage detected