-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentfeatureThis issue represents a new feature or feature request rather than a bug or bug fixThis issue represents a new feature or feature request rather than a bug or bug fix
Description
Feature Description
The mat-list-option
currently has an @Input selected: boolean
which is bound to the checkbox' selected status.
I would like that (de)selecting can also change the boolean in my typescript like follows:
<mat-selection-list>
<mat-list-option [(selected)]="isChecked">Check me!</mat-list-option>
</mat-selection-list>
Is my option checked? {{ isChecked }}!
Use Case
This would allow me to bind the selected status to a boolean of the model I have bound to my component, instead of accessing the selection list. Because I have references to the models, from my main component.
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentfeatureThis issue represents a new feature or feature request rather than a bug or bug fixThis issue represents a new feature or feature request rather than a bug or bug fix