@abhinaya2022/ngx-validation-message
v0.0.1
Published
A library for form validation in Angular
Downloads
2
Readme
angular forcontroller validation-message-library
A library for form validation message in Angular.
Installation
To install this library, run:
npm install ngx-validation-message
Usage Guide
- Import ValidationLibModule
import { ValidationLibModule } from '@abhinaya2022/ngx-validation-message';
@NgModule({
imports: [ValidationLibModule],
})
export class AppModule {}
- Add ngx-input to templete.html
<ngx-input
[label]="'Email'"
[type]="'text'"
formControlName="email"
></ngx-input>
- add formController in component.ts
form: new FormGroup({
email : new FormControl('',[Validators.required,Validators.email]),
})
Helpers
#The library provides a validation message for formcontroller
. onSubmit . Required . Email . Pattern . Touched . Dirty
License
This project is licensed under the MIT License - see the LICENSE file for details.