Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
untilbit opened this issue Nov 25, 2020 · 0 comments

Comments

@untilbit
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant