(locals, identifier, instance, name)
| 9877 | }; |
| 9878 | |
| 9879 | function addIdentifier(locals, identifier, instance, name) { |
| 9880 | if (!(locals && isObject(locals.$scope))) { |
| 9881 | throw minErr('$controller')('noscp', |
| 9882 | "Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.", |
| 9883 | name, identifier); |
| 9884 | } |
| 9885 | |
| 9886 | locals.$scope[identifier] = instance; |
| 9887 | } |
| 9888 | }]; |
| 9889 | } |
| 9890 |
no test coverage detected