如何从mat-selection-list中选择make single复选框.类似于单选按钮,它接受一组值中的一个值.
这与材料5-7一起使用:
- @ViewChild(MatSelectionList) selectionList: MatSelectionList;
- ngOnInit() {
- this.selectionList.selectedOptions = new SelectionModel<MatListOption>(false);
- }