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.

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/589f97fe-5f2d-49a8-834c-596b1fd17095%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to