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
相關文章
相關標籤/搜索