Actions

Let's see what actions are in ngRx and how we can use them to change the application's state.

We'll cover the following

Actions

In ngrx parlance, an action is a defined way that the application’s state can be modified.

In this case, the application has two different ways to modify the state: adding a list of patients done in the initial load and updating a single patient.

Let’s create a file (don’t use the ng tool) named state.ts and add the following lines at the top:

Get hands-on with 1200+ tech skills courses.