How to use paginator from material angular?

后端 未结 9 1847
清歌不尽
清歌不尽 2020-12-04 11:14

I\'m new to angular and trying to implement pagination in my app. I am trying to use this material component.

With the code below, I can get length,

9条回答
  •  猫巷女王i
    2020-12-04 11:18

    The issue in the original question is that you are not capturing "page" event, to resolve this you need to add (page)='yourEventHandler($event)' as an attribute in the md-paginator tag.

    check a working example here

    You can also check the API docs here

提交回复
热议问题