Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230523

Ion-select multiple="true" does not function within ngFor

$
0
0

Don’t use all those ngif’s. it will cause performance issues. Filter the list in the ts file, and ngFor over the already-filtered list. When I want to change filters dynamically, I use the async pipe in the template, and a getter Observable in the ts file. Example:

get filteredList(): Observable<Array<ListItemType>> {
  return observableThatEmitsDynamicallyFilteredList;
}

Viewing all articles
Browse latest Browse all 230523


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>