CounterServicein your components, let's start by building out a small
CounterComponent. The component will be responsible for incrementing and decrementing the counter by one, as well as allowing the user to reset the counter to zero.
Observablecounter value with the
asyncpipe. Any time
appState.counter.currentValueis updated by a reducer,
currentValue$will receive the new value and
| asyncwill update it in the template.