I have the app like:
<body>
<my-app></my-app>
</body>
I need to add class to the body but myApp is deeper than body. I know that I can do it with window.body.addClass...
but I try to do it in an angular way
I try to create the Directive:
@Directive({
selector: 'body'
})
export class .... {
@HostBinding('class.my-superBodyClass')
public isShown: boolean = true;
}
And it doesn't work. What am I doing wrong?