描述

Switch开关组件,事件用法

注意:(ngModelChange)="onNgModelChange($event)" 监听绑定值的改变

示例

1.[(ngModel)]双向绑定开关状态

开关:
switchState:{{switchState}}

事件日志: