我想编辑填写的表格,但我没有从下拉元素中获得值
<ion-item style="background-color:transparent">
<ion-label required class="label">Class
<span>
<b style="color:red">*</b>
</span>
</ion-label>
<ion-select [selectOptions]="selectOptions1" value="{{class}}" placeholder="Select Class" formControlName="class">
<ion-option *ngFor="let class of plannerDetail.course.class; let i = index" (ionSelect)="setClassIndex(i)" value="{{class.id}}">{{class.course_name}}</ion-option>
</ion-select>
</ion-item>
ts文件
placeForm: FormGroup;
class: AbstractControl;
constructor(){
this.placeForm.formBuilder.group({
placeId: [’’, Validators.required],
});
this.placeForm.get(‘class’).setValue(myArray.class);
}