ERROR Error: If ngModel is used within a form tag, either the name attribute must be set or the form
2017-12-20 10:12
1681 查看
ERROR 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.
解决方案1:
在input标签上加上name属性
解决方案2:
在input标签上加上[ngModelOptions]="{standalone: true}"
相关文章推荐
- angular2中standalone=“true”和Name attribute must be set if ngModel is used within a form的问题
- 错误angular2 Error: If ngModel is used within a form tag...
- vs2005下出现“Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive”的解决方法
- Attribute value "xx" is quoted with " which must be escaped when used within the
- Attribute value ("XXX") is quoted with " which must be escaped when used within the value 异常的修正1
- Attribute value is quoted with " which must be escaped when used within the value 问题解决
- Attribute value is quoted with " which must be escaped when used within the value 问题解决
- Attribute value is quoted with " which must be escaped when used within the value 问题解决
- Attribute value is quoted with " which must be escaped when used within the value 问题解决
- 问题解决: Attribute value request.getParameter("id") is quoted with " which must be escaped when used within the value
- Attribute value ("XXX") is quoted with " which must be escaped when used within the value 异常的修正2
- Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive
- Attribute value request.getParameter("digyso") is quoted with " which must be escaped when used within the value
- 错误:is quoted with " which must be escaped when used within the value .
- 错误:is quoted with " which must be escaped when used within the value
- The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid
- TableView出错:Either the tableModel parameter or both source and columns parameters must be specified by component.....
- Attribute name "aphmodel" associated with an element type "mxg" must be followed by the ' = ' charac
- Licenses.licx gets modified whenever a form is modified in design mode and must be checked in if the project is under Source Control
- Attribute value ("XXX") is quoted with " which must be escaped when used within the value 异常的修正