cmyd-form-error
v2.0.2
Published
This version supports Angular `14.1.0` This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.2.14.
Downloads
5
Maintainers
Readme
CmydFormError
This version supports Angular 14.1.0
This library was generated with Angular CLI version 12.2.14.
Guide
add 'CmydFormErrorModule' to your module file.
@NgModule({
imports: [
CmydFormErrorModule
]
})
add 'cmydFormError' directive to your fromControl/formGroup or form Array to active validation, This will appened error messages as sibiling of the input field.
<!-- this is an input marked as formControlName, add 'cmydFormError' to active validation on this field -->
<div>
<input formControlName="myControl" type="text" cmydFormError/>
</div>
Change logs
2.0.2
Error message for minimum and maximum length changed.
2.0.1
Version correction of the package, Works with. Angular 14.1.0.
2.0.0
Works with Angular 14.2.6.
1.0.1
Readme file updated.
1.0.0
Added Minimum and Maixmum Length validators.
0.0.7
Now works with angular >= 12.2.14.
0.0.6
Added email Validator.
0.0.5
Added Greater than, less than message, changed required message.
0.0.4
Added keywords, changed readme file.
0.0.3
Added Scss to make error messages appear red.
0.0.2
Fixed a bug casuing no NgControl found exception.
0.0.1
Initial
Further help
If you found a bug or know a better way of doing it please do reach me out at [email protected]
.