首页 > TAG信息列表 > FormArray

FormArray 调整数据位置

get beans() { return this.validateForm.get('beans') as FormArray; } change(fromIdx, toIdx){ const formGroup = this.beans.at(fromIdx); this.beans.removeAt(fromIdx); this.beans.insert(toIdx, formGroup); } trackByFn(index: any, it