(locals, identifier, instance, name)
| 8437 | }; |
| 8438 | |
| 8439 | function addIdentifier(locals, identifier, instance, name) { |
| 8440 | if (!(locals && isObject(locals.$scope))) { |
| 8441 | throw minErr('$controller')('noscp', |
| 8442 | "Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.", |
| 8443 | name, identifier); |
| 8444 | } |
| 8445 | |
| 8446 | locals.$scope[identifier] = instance; |
| 8447 | } |
| 8448 | }]; |
| 8449 | } |
| 8450 |
no test coverage detected