Reputation: 1675
I would like to change body background color when a specific component (in my case, login component) is visible The login component is loaded using router-outlet from app component.
I tried adding body background color stylesheet in the login component's css and set encapsulation: ViewEncapsulation.None
, it works but it also changed entire application's background color.
Is there any way to only set body stylesheet when loading a specific component (in my case, login component)?
Upvotes: 0
Views: 65