I want to find a div element which is part of a specific route and add a
class to the element. I kept the logic in the index.html in document.ready
function. But, this happens if the complete page is loaded on the first
load (or) page refresh.
I am using Angular 4. So, how do I achieve this?
Hi Jojo,
Can you reproduce this on StackBlitz?
Or create a small GitHub repo that demonstrates your issue? I use the
router in latest and it does work fine.
Regards
Sander
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.