angular-ngrx-refactoring
angular-ngrx-refactoring copied to clipboard
5. Using ngrx in feature modules
Below you have a check list to follow.
A detailed step by step description on how to solve the exercise is in the wiki.
- [ ] Create a new folder
state-managementunderpages/flight - [ ] remove
flightReducerformapp.module.ts - [ ] Move
ngrx/flight.actions.tsandngrx/flight.reducer.tsto the newly created folderstate-management - [ ] Register
flightReducerinpages/flight/state-managementby using theStoreModule.forFeaturemethod- [ ] Adopt imports
- [ ] Register
flightEffectsinpages/flight/state-managementby using theEffectsModule.forFeaturemethod- [ ] Adopt imports
- [ ] Refactor the
ngrxfolder. Create.modulefor global state management file and moveIDBinterface into separate file.