Closed marcjulian closed 4 years ago
@garygrossgarten now you can select the text, as highlight is not rerun always on ngAfterViewChecked
. However, is not correctly working right now when switching a page as described above.
@marcjulian just run on angularready once? Instead of checked
@garygrossgarten I tried that, but the event is to late. Thus the content is displayed and highlight will take affect a few seconds later. But then it works without a problem when navigating from related post to another post.
@garygrossgarten please test it again. I allow highlighting on NavigationStart
.
DONT MERGE.
If you open a post and select another related post
ngOnit
is not rerun. Thus not working 100%.For example open
blog/angular-10-with-tailwindcss
and selectblog/floating-form-field-with-tailwindcss
from related post. Highlight is not run on the new post. However, if you select a tag or another page, which leavesBlogPost
page, when you enter it againngOnit
is triggered correctly