2
votes

In Angular Material Table (with Pagination and Selection) when we click the checkbox in the header, it always selects all the rows. I there an easy way to select only the rows that are on the currently selected page?

1
Please provide feedback on my current solution: stackblitz.com/edit/angular-4by7xtSudhanshu
It is doing same as i know.Akj
This is allready the case in the stackblitz. If you add <div>{{ selection?.selected | json}}</div> in your html you can see this behaviour in actionTim Martens
Tim Martens, good idea for debugging, thanks!Sudhanshu

1 Answers

0
votes

use $event.source.checked to set value after define limit you want.try my example