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>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/CAKVZMjBgtyta%2B6cSNSneJc59A2Z6KhTrVm_XoE1fA-gGEY80fw%40mail.gmail.com.

Reply via email to