是否可以从我的模板中访问channel_header控件 这个=> _form.controls ['头&#39]。对照[I] .controls.channel_header
import { FormBuilder, Validators, FormArray } from '@angular/forms';
constructor(private _fb: FormBuilder)
ngOnInit() {
this._form = this._fb.group({
headers: this._fb.array([
this._fb.group({
channel_header: ['', Validators.required],
data_option: ['', Validators.required]
})
]);
});
}
答案 0 :(得分:1)
我认为应该这样工作
WebApiConfig.cs