I tried to filter the products using a pipe (if no filter choosing from the list I will show all the products) But I'm getting an error. why?
<h2>store</h2>
<select [(ngModel)]="selectedOption" name=Gender>
<option *ngFor="let g of GenderFilter">{{g.DisplayText}}</option>
</select>
<select>
<select [(ngModel)]="selectedOptionPrice" name=Price>
<option *ngFor="let p of PriceFilter">{{p.DisplayText}}</option>
</select>
<tr *ngFor="let P of products | filer : Gender | orderBy: 'GenderFilter'">
<td>{{p.DisplayText}}</td>
</tr>
<tr *ngFor="let P of products | filer : Price | orderBy: 'PriceFilter'">
<td>{{p.DisplayText}}</td>
</tr>
<ul>
<li *ngFor="let store of stores">
<ul>
<li *ngFor="let product of store.Products">
<img src={{product.ProductImage}}>
<p>store: {{ store.StoreName }}</p>
<p>Product Price: {{ product.Price | currency}}</p>
<p>Product Title: {{ product.ProductTitle }}</p>
</li>
</ul>
</li>
</ul>
store
– Dina93 Oct 22 '18 at 05:01