Adding the constants

Next up is adding the constants. Constants are a nice thing to have; they protect us from making mistakes due to us mistyping when we deal with action creators as well as reducers:

// counter/counter-list/counter-list.constants.tsexport const ADD_COUNTER_ITEM = "add counter item";export const REMOVE_COUNTER_ITEM = "remove counter item";

Get Architecting Angular Applications with Redux, RxJS, and NgRx now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.