angluar 表单提交时候报错

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