在 Angular Material Design 6 中,删除了 (change) 方法。
当用户更改选择时,我应该如何替换更改方法以在组件中执行代码?
改变它从change
to selectionChange
.
<mat-select (change)="doSomething($event)">
is now
<mat-select (selectionChange)="doSomething($event)">
https://material.angular.io/components/select/api https://material.angular.io/components/select/api
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)