UNPKG

cmyd-form-error

Version:

This version supports Angular `14.1.0` This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.2.14.

41 lines (34 loc) 1.42 kB
# CmydFormError This version supports Angular `14.1.0` This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.2.14. ## Guide add 'CmydFormErrorModule' to your module file. ```typescript @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. ```html <!-- 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.<br/> `2.0.1` Version correction of the package, Works with.<br/> Angular 14.1.0.<br/> `2.0.0` Works with Angular 14.2.6.<br/> `1.0.1` Readme file updated.<br/> `1.0.0` Added Minimum and Maixmum Length validators.<br/> `0.0.7` Now works with angular >= 12.2.14.<br/> `0.0.6` Added email Validator.<br/> `0.0.5` Added Greater than, less than message, changed required message.<br/> `0.0.4` Added keywords, changed readme file.<br/> `0.0.3` Added Scss to make error messages appear red.<br/> `0.0.2` Fixed a bug casuing no NgControl found exception.<br/> `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 `hamza13sw185@gmail.com`.