I need to inject css classes based on current component. i.e: if I'm currently on LoginComponent, I need to inject login
class into the app.component.html
(the greater parent of my app). Like so:
<div class="content login">
<router-outlet></router-outlet>
</div>
I don't know what the best practices are to handle this. I could also based the injection on url. i.e: if url is xxx./login, then inject login
css class.
Any ideas?
Thanks.