angular button scroll to top code example Example: angular scroll to top scrollToTop(){ window.scroll(0,0); }