Q:

md-paginator how i can get the next or prev click event

I want to get the next button click  event any idea how I can make it 
<md-paginator [length]="length"
    [pageSize]="pageSize"
    [pageSizeOptions]="pageSizeOptions"
    (page)="pageEvent = $event"
    (selectChange)="onPaginateChange($event)">   <---------  not working
</md-paginator>

A:

Update:
Material changed their tags in recent verisons. Use <mat-paginator> isntead of <md-paginator>.
<mat-paginator [length]="length"
               [pageSize]="pageSize"
               [pageSizeOptions]="pageSizeOptions"
               (page)="pageEvent = $event; onPaginateChange($event)">
</mat-paginator>

Original:
Add your onPaginateChange($event) function to the (page) event.
<md-paginator [length]="length"
              [pageSize]="pageSize"
              [pageSizeOptions]="pageSizeOptions"
              (page)="pageEvent = $event; onPaginateChange($event)">
</md-paginator>

Plunker demo

