Hello there,
I have below code where in my angular 6 application (pageChange)="loadPage($event)" , I am using loadPage method to scroll up in the table as there 10 records in the table and I need to scroll up to the table to top records. below stuff does not work it does not autoscroll up.
I am having <table class="table responsive">
loadPage(page:number) {
window.scrollTo(0,0);
}
<ngb-pagination [collectionSize]="totalRecordCount" (pageChange)="loadPage($event)" [pageSize]="10" [(page)]="page" [maxSize]="3"
[ellipses]="false" [rotate]="true" >
</ngb-pagination>