mercredi 22 avril 2020

Angular Material Checkbox to only have unchecked and indeterminate state

I have a page with many Angular Material Checkboxes, for most of the checkboxes, I want to have checked, unchecked and indeterminate state, but for some I want only unchecked and indeterminate i.e. when I click on the the checkbox, it should either be unchecked or indeterminate. I am able to achieve the first scenario, how can I achieve the second scenario? I tried to always keep [checked]="'false'", but, that didn't work.




Aucun commentaire:

Enregistrer un commentaire