I\'m working on a LoginComponent in Angular 2 that should \"restyle\" the html and body tags, so I can put in a background image speci
LoginComponent
html
body
The way I used it is
constructor() { document.body.className = "bg-gradient"; } ngOnDestroy(){ document.body.className=""; }
This will dynamically add and remove style from the body for a particular component.