From the course: Building Angular and ASP.NET Core Applications
Unlock the full course today
Join today to access over 24,500 courses taught by industry experts.
Connecting the dots
From the course: Building Angular and ASP.NET Core Applications
Connecting the dots
- [Instructor] Now that we have set up the actions, store and reducers, it is time to connect the dots and see it in action. So, let us go to visual code. The first thing that we need to do in here is that we need to configure the store module and the effects module and the app.module.ts file. So, inside source, go inside app, and then, scroll to the app.module.ts. Then, scroll down to the imports, and after the router module, write storeModule.forRoot because this is our root module. And then in here inside curly brackets, define a name for the applications state. So, I'll just name it applicationState and then, bookReducer. So, let us just write in here EffectsModule.forRoot and then inside square brackets, write BookEffects. So we have done the configuration, let us go to our books component and see how we can get the data using the ngrx instead of using the service. So, let's go to components then books and then…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.