(locals, identifier, instance, name)
| 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 |
no test coverage detected