Scroll up on pageChange event.
See original GitHub issueAngular version: ^6.0.0
ngx-pagination version: ^3.1.1
Description of issue: On each page change i want to scroll up to top of my component page, how can i access the pageChange event or maybe i can do this another way? I have noticed that in your examples your page doesn’t change any kind of position via CSS either, so i am wondering if it is possible at all or not.
Steps to reproduce: Basic example from demos
Expected result: I need to scroll up to top of component html page when page changes. Actual result: Page stays at same position when page changes.
Demo: (if possible, edit this StackBlitz demo and paste the link to your fork)
Any relevant code:
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
How to scroll to top at each page change on Pagination ...
I would like to have an automatic scroll up when I change pages thanks to my Pagination component. It works great but I...
Read more >Scroll up on ngb pagination page click - Google Groups
I have below code where in my angular 6 application (pageChange)="loadPage($event)" , I am using loadPage method to scroll up in the table ......
Read more >ngx-pagination v6.0.1 - GitHub Pages
pageChange [ event handler ] The expression specified will be invoked whenever the page changes via a click on one of the pagination...
Read more >Scroll to the top of the page using JavaScript/jQuery
A scrollable page can be scrolled to the top using 2 approaches: Method 1: Using window. scrollTo(): The scrollTo() method of the window ......
Read more >Virtual Scrolling - Grid - Kendo UI for Angular - Telerik
To define the virtual scrolling functionality, set scrollable to virtual . Generally, to determine when a pageChange event has to be fired so...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I mean something like this:
In Angular Ionic, do the following:
Import Content view:
@ViewChild(Content) content: Content;Create a function to scroll to an element ID:
Do the scrolling call:
this.scrollTo("page-header");