Trying to set a class based on my current controller or current route (URL Segment 1).
something like
<body class="{{controllerName}}">
That way in case I need to target separate pages for CSS specificity, it makes it easy.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
My solution would be: subscribe to route changes at route scope and put name of the controller there:
Check Plunker solution