我想在选择角度时删除一个选项

时间:2018-09-25 12:01:18

标签: angular typescript angular-material

ex:我在选择标签中有['a','b','c'],然后选择了['b'],我希望下一个选择标签仅包含['a','c' ]

TS文件:

disabled

HTML文件:

orderSelect() { //get all documents from db
    this.orderService.orderSelect().subscribe(data => {
        this.orderArray = new MatTableDataSource(data); 
        this.orderArray.sort = this.sort;
        this.orderArray.paginator = this.paginator;
    });
}

0 个答案:

没有答案