Skip to content

Can't bind to 'ngxValidationErrors' since it isn't a known property of 'mat-form-field'. #24

Open
@untilbit

Description

@untilbit

I've included the module in the app and imported it in the app module but when i use the directive i get this error:

Can't bind to 'ngxValidationErrors' since it isn't a known property of 'mat-form-field'.

<form [formGroup]="heroForm" validationContext="USER.REGISTRATION">
    <mat-form-field *ngxValidationErrors="heroForm.get('name'); errors as errors">
      <input matInput formControlName="name" placeholder="name"/>
      <mat-error *ngIf="errors">{{errors}}</mat-error>
    </mat-form-field>
</form>

The app uses Angular 10 with Ivy enabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions