Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用了 Angular 材料,即“Mat-Checkbox 和 Mat-Tab”。我想保持复选框的选中状态,但是当我更改选项卡时,它将全部取消选中。即使我更改为其他选项卡,是否有任何方法可以保持复选框状态?
先感谢您。
你试过这个吗?
<mat-checkbox [(ngModel)]="checked"> I'm a checkbox </mat-checkbox>