Adding the model

We need to type what our counter-list should contain. For that we need to create a model:

// counter/counter-list/counter.model.tsexport interface Counter {  title: string;  id: number;}

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.