我有这个带有复选框的选择。我想禁用并检查字符串数组中存在的那些。如果值存在于我的角度 .ts 文件中的数组中,我将如何添加disabled和属性。checked
this.claimNames = any[];
<div class="row container">
<div *ngFor="let reno of renoList" class="form-group form-check col-md-3">
<input type="checkbox" class="form-check-input" disabled checked>
<label class="form-check-label">{{reno}}</label>
</div>
</div>
翻过高山走不出你
慕尼黑8549860
随时随地看视频慕课网APP
相关分类