How do you add a default CSS class to an angular component?
something like this:
@Component({
selector: 'app-slide-in-menu',
templateUrl: './slide-in-menu.component.html',
styleUrls: ['./slide-in-menu.component.styl'],
class: 'app-slide-in-menu'
})
But obviously class
doesn't work
My desired result is that the component will be assigned the css class given on the topmost element within the component or on the component itself.
Thanks