Listening in to Changes to the State
Explore how to monitor and respond to state changes in Angular applications by using the ngrx store's select method. Understand how to extract slices of state as observables and handle service injection to ensure data flow, improving app responsiveness and performance.
We'll cover the following...
We'll cover the following...
Changes in state
At this point, ngrx initializes with an empty array and then populates it with data generated by patient-data.service.ts. Next, the components need to listen in for changes to the state.
Three components are involved here. Instead of re-slicing state into rows each time, we can skip the row component and just use the display component, along with a few changes so that Bootstrap handles the rows for us.
To allow this display, ...