MCPcopy Create free account
hub / github.com/OpenReservation/OpenReservation / addIdentifier

Function addIdentifier

OpenReservation/wwwroot/Scripts/angular.js:10144–10153  ·  view source on GitHub ↗
(locals, identifier, instance, name)

Source from the content-addressed store, hash-verified

10142 };
10143
10144 function addIdentifier(locals, identifier, instance, name) {
10145 if (!(locals && isObject(locals.$scope))) {
10146 throw minErr('$controller')('noscp',
10147 "Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",
10148 name,
10149 identifier);
10150 }
10151
10152 locals.$scope[identifier] = instance;
10153 }
10154 }
10155 ];
10156 }

Callers 1

$ControllerProviderFunction · 0.85

Calls 2

isObjectFunction · 0.85
minErrFunction · 0.85

Tested by

no test coverage detected