I have the following issue:
I have implemented a paginated table in Angular using PrimeNG. When switching the page, I want it to automatically scroll to the top.
I have already tried window.scroll and the ViewportScroller, but neither has any effect on the scrolling behavior.
Since my page consists of various components, I believe it has to do with the element that should be scrolled.
Is there a way to generally find the scrolling element and then set it to the top of the page?
MaRvZ is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.