(locals, identifier, instance, name)
| 11794 | }; |
| 11795 | |
| 11796 | function addIdentifier(locals, identifier, instance, name) { |
| 11797 | if (!(locals && isObject(locals.$scope))) { |
| 11798 | throw minErr('$controller')('noscp', |
| 11799 | 'Cannot export controller \'{0}\' as \'{1}\'! No $scope object provided via `locals`.', |
| 11800 | name, identifier); |
| 11801 | } |
| 11802 | |
| 11803 | locals.$scope[identifier] = instance; |
| 11804 | } |
| 11805 | }]; |
| 11806 | } |
| 11807 |
no test coverage detected