(locals, identifier, instance, name)
| 11729 | }; |
| 11730 | |
| 11731 | function addIdentifier(locals, identifier, instance, name) { |
| 11732 | if (!(locals && isObject(locals.$scope))) { |
| 11733 | throw minErr('$controller')('noscp', |
| 11734 | 'Cannot export controller \'{0}\' as \'{1}\'! No $scope object provided via `locals`.', |
| 11735 | name, identifier); |
| 11736 | } |
| 11737 | |
| 11738 | locals.$scope[identifier] = instance; |
| 11739 | } |
| 11740 | }]; |
| 11741 | } |
| 11742 |
no test coverage detected