angluar 表单提交时候报错

mac2022-06-30  22

 

Error: If ngModel is used within a form tag, either the name attribute must be set or the form control must be defined as ‘standalone’ in ngModelOptions

报这个错的时候就在 input  表单上填上name

okok 不报错了

 

转载于:https://www.cnblogs.com/king94Boy/p/9566431.html

最新回复(0)