https://angular.love/the-latest-in-angular-change-detection-zoneless-signals #353
Replies: 3 comments 3 replies
-
In your opinion, is it safe to go zoneless at this stage (v19) of the Angular roadmap for it? For instance for MVP apps and minor enterprise projects? |
Beta Was this translation helpful? Give feedback.
-
Hey, can you answer me about ZoneLess about "change detection only where it’s necessary and exactly when it’s needed." This means I only need to use signals in the template, and when the signal changes, does it trigger change detection precisely for that specific component? Or does it still follow the old mechanism where the entire view triggers change detection? Because I use signals with OnPush for all components in application, and when I use setInterval to update the signal value, only the component using the signal triggers change detection. You can check github here: https://github.com/trminhphu79/angular-signal-2 |
Beta Was this translation helpful? Give feedback.
-
Could you please explain why in this case (see this diagram https://wp.angular.love/wp-content/uploads/2024/10/one-path.gif) components B and G call ngDoCheck? Why isn't the change detection chain only following the path A ⇒ E ⇒ F? Additionally, consider the following hierarchy where all components use OnPush:
When a button is clicked in component D, component C also calls ngDoCheck. Why does the change detection not stop at component B (i.e., A ⇒ B ⇒ D) instead? |
Beta Was this translation helpful? Give feedback.
-
https://angular.love/the-latest-in-angular-change-detection-zoneless-signals
Angular.love - a place for all Angular enthusiasts created to inspire and educate.
https://angular.love/the-latest-in-angular-change-detection-zoneless-signals
Beta Was this translation helpful? Give feedback.
All reactions