angular-ngrx-refactoring
angular-ngrx-refactoring copied to clipboard
1. Manage state with @ngrx/store
Below you have a check list to follow.
A detailed step by step description on how to solve the exercise is in the wiki.
- [ ] Preconditions
Install
@ngrx/storemodule over npmnpm install --save @ngrx/store - [ ] Implement the store
- [ ] Setup StoreModule and IDB interface in app module
- [ ] Setup actions to change the stores state
- [ ] Setup reducer
- [ ] Register the reducer
- [ ] Subscribe to changes and dispatch actions
- [ ] BONUS Refactor to selector functions
- [ ] Create selector function in flight.reducer.ts
- [ ] Use selector function in flight.service.ts
- [ ] BONUS Implement state for flightPending State
- [ ] Extend actions
- [ ] Extend reducer
- [ ] subscribe to changes and dispatch actions