Tag Archives: angular material

When the angular material form does not contain material form field and formcontrolname Error (if ngmodule is used alone)

<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