I am working on the CheckBox functionality where on Click on Select All
all the Checkbox
must be selected. The problem is data is static and is in HTML file
. I have found all other solutions where data is created in ts file
and then used as String interpolation
in html. However I cannot do that as there are other conditions applied on my html data
.
Is there any way I can add Select all checkbox functionality with data in HTML file
?
Here is the link to my code - https://stackblitz.com/edit/angular-material-select-all-aota3b?file=src%2Fapp%2Fapp.component.html
Aucun commentaire:
Enregistrer un commentaire