I am creating a search box in angular to search for matching string in a specific div. I want to implement chrome ctrl + f behaviour when user starts typing in search box(after 3 characters). I want to highlight matching string, get the result length and moving to next/previous match. With a pipe i can archive the highlight but not the other requests. Is there any other way to reach this ?