Search⌘ K

Sending Data to Store

Explore how to update an Angular app using ngrx by sending data to the store from components. Understand centralized state management to improve maintainability and avoid performance issues caused by redundant state recalculations. Learn best practices for organizing actions and reducers as your app grows, and when to evaluate the use of ngrx in your projects.

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 ...