ng2-validation
Advanced tools
Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "ng2-validation", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "angular2 validation", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -31,2 +31,4 @@ # Description | ||
- date | ||
- minDate | ||
- maxDate | ||
- dateISO | ||
@@ -127,2 +129,16 @@ - creditCard | ||
### minDate | ||
```html | ||
<input type="text" [(ngModel)]="model.field" name="field" #field="ngModel" minDate="2016-09-09"/> | ||
<p *ngIf="field.errors?.minDate">error message</p> | ||
``` | ||
### maxDate | ||
```html | ||
<input type="text" [(ngModel)]="model.field" name="field" #field="ngModel" maxDate="2016-09-09"/> | ||
<p *ngIf="field.errors?.maxDate">error message</p> | ||
``` | ||
### dateISO | ||
@@ -319,2 +335,14 @@ | ||
### minDate | ||
```javascript | ||
new FormControl('', CustomValidators.minDate('2016-09-09')) | ||
``` | ||
### maxDate | ||
```javascript | ||
new FormControl('', CustomValidators.maxDate('2016-09-09')) | ||
``` | ||
### dateISO | ||
@@ -321,0 +349,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
123514
410