(locals, identifier, instance, name)
| 10614 | }; |
| 10615 | |
| 10616 | function addIdentifier(locals, identifier, instance, name) { |
| 10617 | if (!(locals && isObject(locals.$scope))) { |
| 10618 | throw minErr('$controller')('noscp', |
| 10619 | 'Cannot export controller \'{0}\' as \'{1}\'! No $scope object provided via `locals`.', |
| 10620 | name, identifier); |
| 10621 | } |
| 10622 | |
| 10623 | locals.$scope[identifier] = instance; |
| 10624 | } |
| 10625 | }]; |
| 10626 | } |
| 10627 |
no test coverage detected