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

Function addIdentifier

lib/test/angular/1.4.3/angular.js:9023–9031  ·  view source on GitHub ↗
(locals, identifier, instance, name)

Source from the content-addressed store, hash-verified

9021 };
9022
9023 function addIdentifier(locals, identifier, instance, name) {
9024 if (!(locals && isObject(locals.$scope))) {
9025 throw minErr('$controller')('noscp',
9026 "Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",
9027 name, identifier);
9028 }
9029
9030 locals.$scope[identifier] = instance;
9031 }
9032 }];
9033}
9034

Callers 1

$ControllerProviderFunction · 0.70

Calls 2

isObjectFunction · 0.70
minErrFunction · 0.70

Tested by

no test coverage detected