Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Flavio Costa committed Feb 26, 2017
2 parents 63ff48d + 3299ba5 commit e15889f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +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 e15889f

Please sign in to comment.