Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng2-validation

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng2-validation - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc