ngx-validation-messages
Overview
Validation messages used by form controls of Angular.
Feature
- custom messages configuration
- Interpolate messages by Message parameters
Installation
To install this library, run:
$ npm install ngx-validation-messages --save
Choose the version corresponding to your Angular version:
Angular | version |
---|---|
6,7,8,9 | 2.x |
5 | 1.x |
4 | 0.x |
Usage
e.g.
'interpolate' method of NgxValidationMessagesService that return Array of validation message for each form
Example
"name":"name is required""name must be at least 5." "address":"address is required"
<!-- app.component.html --> Name {{ e }}
custom message configuration
'message' keyword of parameter is the message itself.
config =;