(locals, identifier, instance, name)
| 11160 | }; |
| 11161 | |
| 11162 | function addIdentifier(locals, identifier, instance, name) { |
| 11163 | if (!(locals && isObject(locals.$scope))) { |
| 11164 | throw minErr('$controller')('noscp', |
| 11165 | 'Cannot export controller \'{0}\' as \'{1}\'! No $scope object provided via `locals`.', |
| 11166 | name, identifier); |
| 11167 | } |
| 11168 | |
| 11169 | locals.$scope[identifier] = instance; |
| 11170 | } |
| 11171 | }]; |
| 11172 | } |
| 11173 |
no test coverage detected