(locals, identifier, instance, name)
| 9467 | }; |
| 9468 | |
| 9469 | function addIdentifier(locals, identifier, instance, name) { |
| 9470 | if (!(locals && isObject(locals.$scope))) { |
| 9471 | throw minErr('$controller')('noscp', |
| 9472 | "Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.", |
| 9473 | name, identifier); |
| 9474 | } |
| 9475 | |
| 9476 | locals.$scope[identifier] = instance; |
| 9477 | } |
| 9478 | }]; |
| 9479 | } |
| 9480 |
no test coverage detected