Sending Data to Store
Let's update our application by using ngrx to update the patientDisplay component for improving the performance of the application.
We'll cover the following
Sending data to store
The final step in converting your application to use ngrx
is to update the patientDisplay
component to dispatch an event to the service, much like you did when initializing the patient list. The same steps apply: inject the store with the Store<any>
annotation and dispatch an event through the event constructor defined in state.ts
, this time UpdatePatientAction
.
Get hands-on with 1400+ tech skills courses.