<input [(ngModel)]=”field.name” [ngModelOptions]=”{standalone: true}” class=”form-control” type=”text” name=”{{field.name}}” />
Solution:
Add [ngModelOptions]=”{standalone: true}” to input, so that using ngmodel alone in angular material will not report an error
Similar Posts:
- Angular5 Error: ngModel cannot be used to register form controls with a parent formGroup directive
- Angular7:Can’t bind to ‘formGroup’ since it isn’t a known property of ‘form’ [Solved]
- [DOM] Input elements should have autocomplete attributes (suggested: autocomplete=’tel’, …
- [How to Solve] Uncaught ReferenceError: app is not defined
- Can read property ‘indexof’ of undefined
- [Solved] The cause of the wrong prompt instruction [ng: areq] in angular
- HTTP status 405 – request method ‘get’ not supported using springmvc
- Spring MVC upload file error string cannot be converted to multipartfile
- Error:Cannot find bean: “org.apache.struts.taglib.html.BEAN” in any scope
- CSRF verification failed. Request aborted [How to Solve]