(locals, identifier, instance, name)
| 9021 | }; |
| 9022 | |
| 9023 | function addIdentifier(locals, identifier, instance, name) { |
| 9024 | if (!(locals && isObject(locals.$scope))) { |
| 9025 | throw minErr('$controller')('noscp', |
| 9026 | "Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.", |
| 9027 | name, identifier); |
| 9028 | } |
| 9029 | |
| 9030 | locals.$scope[identifier] = instance; |
| 9031 | } |
| 9032 | }]; |
| 9033 | } |
| 9034 |
no test coverage detected