mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
3bc63eaaf3
This commit updates the implementation of `ngswAppInitializer` to configure the `controllerchange` event listener outside of the Angular zone. This adjustment is made to prevent unnecessary change detections, as the `controllerchange` event is unrelated to view updates. **NOTE**: This change may result in breaking unit tests that implicitly rely on a specific number and sequence of change detections for their assertions to pass. PR Close #54222