(locals, identifier, instance, name)
| 8531 | }; |
| 8532 | |
| 8533 | function addIdentifier(locals, identifier, instance, name) { |
| 8534 | if (!(locals && isObject(locals.$scope))) { |
| 8535 | throw minErr('$controller')('noscp', |
| 8536 | "Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.", |
| 8537 | name, identifier); |
| 8538 | } |
| 8539 | |
| 8540 | locals.$scope[identifier] = instance; |
| 8541 | } |
| 8542 | }]; |
| 8543 | } |
| 8544 |
no test coverage detected