i have a list and search box. the data in my list is using Uppercase, and i 
want to filter what i search in both case (lower and upper).
my code  :

 list = this.listItem? list.filter(x => x.listname.indexOf(this.listItem) 
>= 0 || x.listname.toLowerCase().indexOf(this,listItem) >= 0) : list

 * x.itemdesc.indexOf(this.itemFilter) --> this one only filter with same 
case with data in my list
 * x.itemdesc.toLowerCase().indexOf(this,itemFilter) --> this one only 
filter data with lower case

any suggestion to not using 2 condition like above?

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to