I have diffirent classes for login page and other pages in application so after user logged in I need to change class of body element. Here how I am trying to accomplish thi
Bindings outside
are not supported.
What you can do is to use selector: 'body'
in you AppComponent
and
@HostBinding('class.dashboard')
dashboardClass = false;
@HostBinding('class.site-navbar-small')
siteNavbarSmallClass = false;
...
and then set the properties to true
to get the classes added.
or just
document.body.classList.add('dashboard');