angular-ui / bootstrap

PLEASE READ THE PROJECT STATUS BELOW. Native AngularJS (Angular) directives for Bootstrap. Smaller footprint (20kB gzipped), no 3rd party JS dependencies (jQuery, bootstrap JS) required. Please read the README.md file before submitting an issue!
http://angular-ui.github.io/bootstrap/
MIT License
14.3k stars 6.74k forks source link

if i use (pageChange)="onPageChange($event)" inside pagination it caused page rehresh #6551

Closed salluu closed 7 years ago

salluu commented 7 years ago

if i use eventEmitter for ngb-pagination it causes my whole page to refresh on every ever

 <ngb-pagination (pageChange)="onPageChange($event)" [collectionSize]="collectionSize" [(page)]="currentPage"
                        [maxSize]="20" [rotate]="true" [ellipses]="false" [boundaryLinks]="true">

        </ngb-pagination>

and in code its


 private onPageChange = (pageNumber) => {
        this.pageChange.emit(pageNumber)     
    }