我有這個帶有復選框的選擇。我想禁用并檢查字符串數組中存在的那些。如果值存在于我的角度 .ts 文件中的數組中,我將如何添加disabled和屬性。checkedthis.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>
如何基于在我的 .ts 文件中的數組中搜索值數組來禁用和選中復選框
翻過高山走不出你
2022-01-13 10:35:53
