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

Function addIdentifier

lib/test/angular/1.7.0/angular.js:11162–11170  ·  view source on GitHub ↗
(locals, identifier, instance, name)

Source from the content-addressed store, hash-verified

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

Callers 1

$ControllerProviderFunction · 0.70

Calls 2

isObjectFunction · 0.70
minErrFunction · 0.70

Tested by

no test coverage detected