This application is designed to visualize how change detection works in Angular applications. It provides a graphical interface showing a tree of components with counters that increment to indicate change detection cycles and signal changes. This tool helps developers understand the performance implications of change detection strategies and how signals propagate through an Angular application.
- Change Detection Counter (CD): Displays the number of times Angular has checked this component and its children for changes.
- Signal Change Counter: Indicates the number of times a signal has changed in the component.
- Manual Change Trigger: Allows you to manually trigger a change in the component, simulating a state change.
- Interval Change Trigger: Sets up an interval that periodically triggers a change, simulating recurring state changes.
- Starting the Application: Run
ng serve
to start the application and navigate tohttp://localhost:4200/
to view it in your browser. - Manual Change: Click the 'Manual Change' button on any component to trigger change detection by increment the Signal counter.
- Start Interval Change: Click the 'Start Interval Change' to simulate local change detection using PnPush strategy with the Signals.
- Observing Propagation: Watch how changes in child components affect parent components.