MCPcopy Create free account
hub / github.com/angular-ui/ui-router / addIdentifier

Function addIdentifier

test/angular/1.6/angular.js:11163–11171  ·  view source on GitHub ↗
(locals, identifier, instance, name)

Source from the content-addressed store, hash-verified

11161 };
11162
11163 function addIdentifier(locals, identifier, instance, name) {
11164 if (!(locals && isObject(locals.$scope))) {
11165 throw minErr('$controller')('noscp',
11166 'Cannot export controller \'{0}\' as \'{1}\'! No $scope object provided via `locals`.',
11167 name, identifier);
11168 }
11169
11170 locals.$scope[identifier] = instance;
11171 }
11172 }];
11173}
11174

Callers 1

$ControllerProviderFunction · 0.70

Calls 2

isObjectFunction · 0.70
minErrFunction · 0.70

Tested by

no test coverage detected