(locals, identifier, instance, name)
| 11090 | }; |
| 11091 | |
| 11092 | function addIdentifier(locals, identifier, instance, name) { |
| 11093 | if (!(locals && isObject(locals.$scope))) { |
| 11094 | throw minErr('$controller')('noscp', |
| 11095 | 'Cannot export controller \'{0}\' as \'{1}\'! No $scope object provided via `locals`.', |
| 11096 | name, identifier); |
| 11097 | } |
| 11098 | |
| 11099 | locals.$scope[identifier] = instance; |
| 11100 | } |
| 11101 | }]; |
| 11102 | } |
| 11103 |
no test coverage detected