Angular2错误收集一:加了form表单,没有给输入表单加name属性

在Angular2页面中使用form标签的时候,若是input 标签没有加name属性,回报一个错误html LoginComponent.html:18 ERROR Error: If ngModel is used within a form tag, either the name attribute must be set or the form 这段话大体意思是使用了ngModel,na
相关文章
相关标签/搜索