BioPhoton / BioPhoton/angular-ngrx-refactoring

5. Using ngrx in feature modules

Open
#6 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
22
Forks
12
PR merge metrics
No merged PRs in 30d

Description

Below you have a check list to follow.
A detailed [step by step description](https://github.com/BioPhoton/angular-ngrx-refactoring/wiki/Handling-router-state-with-%40ngrx-router-store) on how to solve the exercise is in the [wiki](https://github.com/BioPhoton/angular-ngrx-refactoring/wiki/Angular-@NGRX-Refactoring---Overview).
- [ ] Create a new folder `state-management` under `pages/flight`
- [ ] remove `flightReducer` form `app.module.ts`
- [ ] Move `ngrx/flight.actions.ts` and `ngrx/flight.reducer.ts` to the newly created folder `state-management`
- [ ] Register `flightReducer` in `pages/flight/state-management` by using the `StoreModule.forFeature` method
- [ ] Adopt imports
- [ ] Register `flightEffects` in `pages/flight/state-management` by using the `EffectsModule.forFeature` method
- [ ] Adopt imports
- [ ] Refactor the `ngrx` folder. Create `.module` for global state management file and move `IDB` interface into separate file.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.