A package to display error messages in angular forms
npm install ngx-error-messageNgxErrorMessage is an Angular library that displays dynamic error messages for reactive or template-driven forms, with optional internationalization support using @ngx-translate.
``bash`
npm install ngx-error-message --saveOptional for translations:
npm install @ngx-translate/core @ngx-translate/http-loader --save
1. Import NgxErrorMessageModule in your main module and configure @ngx-translate if you want multilingual support.assets/i18n/en.json
2. Add error messages to your translation files ().
3. Use the directive in your form fields:
`html`
- Customize error messages globally or per field.
- Use the classNames attribute for custom styles.when` attribute.
- Control when to show errors with the
- Easily add custom patterns and validations.
See the official documentation for advanced examples, detailed setup, and customization.
---
> Github @darioegb