MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / addIdentifier

Function addIdentifier

code/songhop/www/lib/angular/angular.js:8439–8447  ·  view source on GitHub ↗
(locals, identifier, instance, name)

Source from the content-addressed store, hash-verified

8437 };
8438
8439 function addIdentifier(locals, identifier, instance, name) {
8440 if (!(locals && isObject(locals.$scope))) {
8441 throw minErr('$controller')('noscp',
8442 "Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",
8443 name, identifier);
8444 }
8445
8446 locals.$scope[identifier] = instance;
8447 }
8448 }];
8449}
8450

Callers 1

$ControllerProviderFunction · 0.70

Calls 2

isObjectFunction · 0.70
minErrFunction · 0.70

Tested by

no test coverage detected