更改选择成为错误时,使用FormArray的Angular Reactive Form

问题描述

我有一个反应式和一个formarray。

情况: 当我选择食物类型:输入时, 然后会出现输入 当我选择食物类型:选择时, 然后将出现SELECT

对于formArray索引0,还没有问题, 但是,当索引1选择INPUT时,所有输入都发生变化,就会出现问题。

enter image description here

enter image description here

我已将代码存储在“ https://stackblitz.com/edit/angular-ivy-qu6cwu?file=src/app/app.component.html”堆栈中

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)