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

Function addIdentifier

lib/test/angular/1.8.0/angular.js:11796–11804  ·  view source on GitHub ↗
(locals, identifier, instance, name)

Source from the content-addressed store, hash-verified

11794 };
11795
11796 function addIdentifier(locals, identifier, instance, name) {
11797 if (!(locals && isObject(locals.$scope))) {
11798 throw minErr('$controller')('noscp',
11799 'Cannot export controller \'{0}\' as \'{1}\'! No $scope object provided via `locals`.',
11800 name, identifier);
11801 }
11802
11803 locals.$scope[identifier] = instance;
11804 }
11805 }];
11806}
11807

Callers 1

$ControllerProviderFunction · 0.70

Calls 2

isObjectFunction · 0.70
minErrFunction · 0.70

Tested by

no test coverage detected