MCPcopy Index your code
hub / github.com/angular-ui/ui-grid / addIdentifier

Function addIdentifier

lib/test/angular/1.6.7/angular.js:11092–11100  ·  view source on GitHub ↗
(locals, identifier, instance, name)

Source from the content-addressed store, hash-verified

11090 };
11091
11092 function addIdentifier(locals, identifier, instance, name) {
11093 if (!(locals && isObject(locals.$scope))) {
11094 throw minErr('$controller')('noscp',
11095 'Cannot export controller \'{0}\' as \'{1}\'! No $scope object provided via `locals`.',
11096 name, identifier);
11097 }
11098
11099 locals.$scope[identifier] = instance;
11100 }
11101 }];
11102}
11103

Callers 1

$ControllerProviderFunction · 0.70

Calls 2

isObjectFunction · 0.70
minErrFunction · 0.70

Tested by

no test coverage detected