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 78723c6 commit 85ab172
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# 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 85ab172

Please sign in to comment.