This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
fix($controller): support instantiation of ES6 classes #13510
Closed
Description
See #12598 (comment)
The $controller
service has two paths for creating instances of a controller. In the later == true
path we are not using $injector.instantiate
, which has recently been fixed to support ES6 classes.
We ought to refactor $controller
to use $injector.instantiate
in both paths for consistency, if this is possible.