アーク2の材質設計を使用しています。私のアプリケーションに材質設計ページを使用して、コンポーネントの現在の選択ページインデックスを取得します。ページネータのplugin.hereのための多くのドキュメントは、材料のページネータページがありません:https://material.angular.io/components/paginator/overviewアングル2材質ページめがね現在のページインデックスを取得
HTMLコード
<md-paginator [length]="100"
[pageSize]="10"
[pageSizeOptions]="[5, 10, 25, 100]">
</md-paginator>
角度2コード
@Component({
selector: 'paginator-overview-example',
templateUrl: 'paginator-overview-example.html',
})
export class PaginatorOverviewExample {
//I want to get page change event here
}
私は彼のAPI https://material.angular.io/components/paginator/apiに見られるように、ページインデックス –
の@outputは、どのように私はそれを実装することができますがありますか? paginatorで変更イベントを取得する方法は? –
彼の例を見てみましょう "pageEvent" https://material.angular.io/components/paginator/examples –