Wrote an article
https://dev.to/anirbmuk/implement-scroll-to-top-in-angular-1e03