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
I had same issue with margin-top , the way I fixed is
constructor( private _renderer: Renderer2, ) { this._renderer.removeStyle(document.body, 'margin-top'); }
This worked perfectly for me.