Skip to content

fr([Automation of mat-error]): [mat-error automatically injected in mat-form-field] #18891

@begandroide

Description

@begandroide

Feature Description

I want to make automation of errors showing in mat-form-field. Actually we cannot put automatically the errors in the component. I want use forms like this:

<mat-form-field> 
        <mat-label> {{ '::Login:Username' | abpLocalization }} </mat-label>
        <input matInput formControlName="username">
        <mat-icon matSuffix class="secondary-text">mail</mat-icon>
</mat-form-field>

So, we dont need to write explicity the error statement; because the backend its who send the error, and i has a custom validation component that intercept those errors.

Finally, how we can do this? i have a solution but my custom component error is placed like brother of and i want place my custom component in div.mat-form-field-subscript-wrapper
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureThis issue represents a new feature or feature request rather than a bug or bug fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions