Javascript Scroll Top Not Working Correctly In Angular2

Javascript Scroll Top Not Working Correctly In Angular2