我的角度项目中有这一行:

<option *ngFor="let item of painLevels" value="{{item.id}}">{{item.painlevel}}</option>

我收到此错误:

ngModel不能用于使用父formGroup指令注册表单控件 . 请尝试使用formGroup的合作伙伴指令“formControlName” .

如何将[ngModelOptions] =“{standalone:true}”应用于下拉菜单?我所看到的只是输入的例子 . 或者有更好的方法来解决这个问题吗?