#Why are my pagination and sorting not working?

3 messages · Page 1 of 1 (latest)

wispy yarrow
#

I've followed the documentation example in here: https://material.angular.io/components/table/examples#table-overviewbut it's still not working properly. I'm not sure what I'm doing incorrectly. It's listing 100 rows of data but I just want the initial 5 to be displayed. Also sorting has not been working either when I click on the columns. I haven't tried working on sorting yet but that's something I'm going to do

fallen granite
#

Your stackblitz link redirects to its homepage.

#

The problem is probably that your directory$ observable emits asynchonously. When it emits, it replaces the datasource on which you set the paginator before.