ngx-validation
v0.0.4-test
Published
angular two and above validation directives by ReactiveCore
Downloads
375
Readme
ngx-validation
Angular2 + form validators
ngx-validation is made by ReactiveCore for common form validation:
- email validation
- file upload type validation
- sql query validation
- equals validation
Installation
Install ngx-validation from npm:
npm install ngx-validation --save
Setup
Set up in your project like this
import{ NgValidationModule } from 'ngx-validation'
@NgModule({
imports:[
// ...
NgValidationModule,
// ...
]
})
Examples
Email Validation
<input type="email" validateEmail>
File Upload Validation
<input type="file" [fileType]="['docx','png']">