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

Function addIdentifier

lib/test/angular/1.5.0/angular.js:9879–9887  ·  view source on GitHub ↗
(locals, identifier, instance, name)

Source from the content-addressed store, hash-verified

9877 };
9878
9879 function addIdentifier(locals, identifier, instance, name) {
9880 if (!(locals && isObject(locals.$scope))) {
9881 throw minErr('$controller')('noscp',
9882 "Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",
9883 name, identifier);
9884 }
9885
9886 locals.$scope[identifier] = instance;
9887 }
9888 }];
9889}
9890

Callers 1

$ControllerProviderFunction · 0.70

Calls 2

isObjectFunction · 0.70
minErrFunction · 0.70

Tested by

no test coverage detected