Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
update
  • Loading branch information
fcostaprojects authored Feb 25, 2017
1 parent 909e21d commit 3299ba5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
# nativescript-input-validator-ng2
Example of input validation component for nativescript ng2, using class-validator
```
export class Login {
@IsEmail(undefined, {message:"Email invalid"})
@IsNotEmpty({message:"Email is required"})
email: string;
@IsNotEmpty({message:"Password is required"})
password: string;
}
```

![screen](https://cloud.githubusercontent.com/assets/22457603/23334454/9ca32b10-fb7d-11e6-84c3-734d63376ff5.png)

0 comments on commit 3299ba5

Please sign in to comment.