you are binding string value to ngModel that needs to be boolean for check, so change it to: <div> <mat-slide-toggle [checked]="agent.attributes[i].value ...
確定! 回上一頁