From 85ab172c8826f6a43ab4a7b4e9c63ce198f7059a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=A1vio=20Costa?= Date: Sat, 25 Feb 2017 19:50:19 -0300 Subject: [PATCH] Update README.md update --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index f016542..907555c 100644 --- a/README.md +++ b/README.md @@ -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)