Implementing Components
app/components/counter.component.ts
<p>
<button (click)="actions.reset()">Reset</button>
The template syntax should be familiar by now, displaying an counter value with the async
pipe. Any time appState.counter.currentValue
isupdated by a reducer, currentValue$
will receive the new value and will update it in the template.