docs-bug(mat-selection-list): Mat Selection List example is limited to html templating #25894
Labels
area: material/list
docs
This issue is related to documentation
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Documentation Feedback
It would be really nice if there could be some example implemented that can bind data to the component inside the *.component.ts file. The current example only seems to work with HTML templating, but what if we want to retrieve the value outside of the HTML?
Current mat list with single selection example:
As a proposed example it would be nice to have a Reactive Forms approach where we can retrieve the data from the FormGroup and even validate it right away before the data. I think this approach would also open up the data to be displayed as well as received.
Some kind of example proposal:
I checked back the version history and noticed the same example from v6 - v14 (slightly different as we approach old versions).
Affected documentation page
https://material.angular.io/components/list/examples
The text was updated successfully, but these errors were encountered: