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?
Thanks in advance.