web-dave / ngrx-workshop

0 stars 1 forks source link

The first Reducer #4

Open web-dave opened 5 years ago

web-dave commented 5 years ago
web-dave commented 5 years ago
Reducer ```ts export function booksReducer( state = initialState, action: BookActions ): BooksState { switch (action.type) { case LOAD_BOOKS: return { ...state, books: (action as LoadBooks).books }; default: { return state; } } } ```
web-dave commented 5 years ago

Next