im trying to hide unused items from ngFor, the problem is, i did hide it successfully but its place still exists and empty like the image below:
My ts file:
Two options:
Refactor the template into the following:
{{c.expiry}} {{c.code}}
Or store the filtered elements of the list in another instance member of the component:
this.filteredCoupons = this.coupons.filter(c => c.coEmail == this.shared.customerData.email) {{c.expiry}} {{c.code}}