window.scrollTo(0,0) is not working in Angular 10

后端 未结 0 1526
旧巷少年郎
旧巷少年郎 2020-11-28 20:16

I\'m trying to make a form where click on \'Next\' will scroll the page to top i tried window.scrollTo(0,0); and this.viewportScroller.scrollToPosition([0

相关标签:
回答
  • 消灭零回复
提交回复
热议问题