March 2018
Intermediate to advanced
364 pages
8h 21m
English
We do need to add and implement all the files in bold, but we also need to update the counter.module.ts file so we are able to handle the added state:
// counter/counter.module.tsimport { NgModule } from "@angular/core";import { CommonModule } from "@angular/common";import { CounterComponent } from "./counter.component";import { StoreModule, ActionReducerMap } from "@ngrx/store";import { counterReducer } from "./counter.reducer";import { CounterListComponent } from "./counter-list/counter-list.component";import { Counter } from "./counter-list/counter.model";import { counterListReducer } from "./counter-list/counter-list.reducer";import { FormsModule } from "@angular/forms";export interface CounterState { data: number; ...
Read now
Unlock full access