We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b68ae0d commit 5d50ec7Copy full SHA for 5d50ec7
src/components-examples/material/list/list-single-selection/list-single-selection-example.html
@@ -1,9 +1,9 @@
1
<mat-selection-list #shoes [multiple]="false">
2
- <mat-list-option *ngFor="let shoe of typesOfShoes">
+ <mat-list-option *ngFor="let shoe of typesOfShoes" [value]="shoe">
3
{{shoe}}
4
</mat-list-option>
5
</mat-selection-list>
6
7
<p>
8
- Option selected: {{shoes.selectedOptions.selected}}
+ Option selected: {{shoes.selectedOptions.selected[0]?.value}}
9
</p>
0 commit comments