You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tvde1 opened this issue
Jul 6, 2021
· 2 comments
· Fixed by #23125
Assignees
Labels
featureThis issue represents a new feature or feature request rather than a bug or bug fixP3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
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.
The text was updated successfully, but these errors were encountered:
Tvde1
added
feature
This issue represents a new feature or feature request rather than a bug or bug fix
needs triage
This issue needs to be triaged by the team
labels
Jul 6, 2021
crisbeto
added
has pr
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
and removed
needs triage
This issue needs to be triaged by the team
labels
Jul 7, 2021
crisbeto
added a commit
to crisbeto/material2
that referenced
this issue
Jul 7, 2021
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
featureThis issue represents a new feature or feature request rather than a bug or bug fixP3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
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:
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.
The text was updated successfully, but these errors were encountered: