Highlighting Search Results Based on ion-searchbar


#1

I have a the results in ion-list from json data. I used https://github.com/arthurvaverko/ngx-highlight but I am getting rhis error: Cannot find module “ngx-highlight/fill-highlight.module”.
Is there a way I could highlight a text in a sentence inside a div element (in Ionic)? I mean, it will only highlight those words based on the value of the ion-searchbar.

Thanks!!! :slight_smile:


#2

I tried this https://material.angularjs.org/latest/api/directive/mdHighlightText but it didnt work…