MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / addIdentifier

Function addIdentifier

web/static/bower_components/angular/angular.js:9160–9168  ·  view source on GitHub ↗
(locals, identifier, instance, name)

Source from the content-addressed store, hash-verified

9158 };
9159
9160 function addIdentifier(locals, identifier, instance, name) {
9161 if (!(locals && isObject(locals.$scope))) {
9162 throw minErr('$controller')('noscp',
9163 "Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",
9164 name, identifier);
9165 }
9166
9167 locals.$scope[identifier] = instance;
9168 }
9169 }];
9170}
9171

Callers 1

$ControllerProviderFunction · 0.85

Calls 2

isObjectFunction · 0.85
minErrFunction · 0.85

Tested by

no test coverage detected