I want to apply styling for each component, what i am looking is I want to get the current component selector name and pass it as class name like this
<div [class]="component-slector-name">
<router-outlet></router-outlet>
</div>
so that for every active component I get its selector and set it to div tag for custom css styling..
Does anyone know how to do this ?? Thanks in advance for time and support.
There are different ways to achieve it.
Here is one option:
*.html
*.ts