Finally, let's add some good old client-side filtering to the page:
- First, let's add a new instance variable called filter of the string type to the ProductComponent class in the product.component.ts file:
export class ProductComponent implements OnInit, OnDestroy { ... filter: string; constructor( ... ) { ... } ...}
- Now let's use this variable in the product.component.html file. Add the highlighted snippet from the following ...