(locals, identifier, instance, name)
| 10142 | }; |
| 10143 | |
| 10144 | function addIdentifier(locals, identifier, instance, name) { |
| 10145 | if (!(locals && isObject(locals.$scope))) { |
| 10146 | throw minErr('$controller')('noscp', |
| 10147 | "Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.", |
| 10148 | name, |
| 10149 | identifier); |
| 10150 | } |
| 10151 | |
| 10152 | locals.$scope[identifier] = instance; |
| 10153 | } |
| 10154 | } |
| 10155 | ]; |
| 10156 | } |
no test coverage detected