【发布时间】:2018-11-05 14:29:30
【问题描述】:
我通过两个mat-optgroup 组控制mat-select
它有一个事件处理程序(selectionChange)="applicationSelected($event.value, i)。
如何检测从哪个组中选择了选项?
【问题讨论】:
-
我没有在我的项目中使用 Angular Material,但我猜你可以使用 $event 来捕捉选中的组?
-
@Enima,谢谢。我也是这么想的,但是在 $event 对象中没有找到任何有用的字段。