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?
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 action
– Tim 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
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
<div>{{ selection?.selected | json}}</div>
in your html you can see this behaviour in action – Tim Martens