ReactiveFormConfig

ReactiveFormConfig is used to configure date format, validation messages globally at the start of the application.

About ReactiveFormConfig

ReactiveFormConfig is used to globally set date format,validation messages whenever the application starts it will initialized automatically. we have to set "validationMessage" for setting global validation message ,"baseConfig" for setting dateformat globally and "internationalization" for setting dateformat for worldwide applications.

baseConfig

To set the date format throughtout the application for date validation check, the baseConfig of ReactiveFormConfig is a configuration if you set then the applied the value prameter 'value' in 'minDate' and 'maxDate' validation works accordingly otherwise it will take the default format of 'mm/dd/yyyy'.Suppose date format in your country is 'mm/dd/yy', Set the dateformat as "mdy" or if it is 'dd/mm/yy' Set the dateformat as "dmy" and the format will be set globally.


internationalization

Suppose You want the application to work worldwide and you want the date format to validated according to your region,In that case you can change internationalization dynamically if your system supports it.

Validation Messages

Apply global validation messages throughout the application, then configure the validation messages globaly, You must set message for every validator you use.