is there way to modify filter in Angular MatTableDataSource to filter data from the beginning of the searched expression and not included?

Viewed 47
1 Answers

Solution is found.

in line 91 Replace : data.name.toLowerCase().indexOf(searchTerms.name) !== -1 by data.name.toLowerCase().startsWith(searchTerms.name)

Related