Replies: 5 comments
-
Check the |
Beta Was this translation helpful? Give feedback.
-
Unfortunately that's not enough.
Putting aside the fact that it's not very pretty, it doesn't 'trigger' mat-error animation and custom positioning handled (I guess) in mat-form-field. Welp, once again, material is not very friendly with custom stuff. |
Beta Was this translation helpful? Give feedback.
-
My personal implementation:
|
Beta Was this translation helpful? Give feedback.
-
I experience the same problems as @Wykks. For material it would need a different approach, more like suggested here: https://stackoverflow.com/a/58566061 I made a quick search and stumbled on this lib: https://www.npmjs.com/package/ngx-mat-errors |
Beta Was this translation helpful? Give feedback.
-
Hello, We are using the same approach like @jogelin for matInput fields and there it works perfect. Here the error doesn't shown (also not added to the DOM)
This does work
|
Beta Was this translation helpful? Give feedback.
-
I'm submitting a...
Current behavior
I'm trying to use this lib with angular material components/directives (
matInput
,mat-select
, etc.) but I'm getting an undesired behavior...... note that in the example above it's rendering the error message inside input.
Expected behavior
I want know if it's possible to use it with angular material and if so, a minimal documentation on how to use would be great.
Minimal reproduction of the problem with instructions
Try to use it with angular material components/directives.
Environment
Beta Was this translation helpful? Give feedback.
All reactions