Skip to content

Instantly share code, notes, and snippets.

@rajatk16
Created July 11, 2018 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajatk16/866ab3c7bb88eb57fb856c3b0cdf11b5 to your computer and use it in GitHub Desktop.
Save rajatk16/866ab3c7bb88eb57fb856c3b0cdf11b5 to your computer and use it in GitHub Desktop.
<nb-form>
<nb-item :error="(!$v.emailValue.required || !$v.emailValue.email ) && $v.emailValue.$dirty">
<nb-input placeholder="Email" v-model="emailValue" auto-capitalize="none" :on-blur="() => $v.emailValue.$touch()"/>
</nb-item>
<nb-item last :error="!$v.password.required && $v.password.$dirty">
<nb-input placeholder="Password" v-model="password" auto-capitalize="none" secure-text-entry :on-blur="() => $v.password.$touch()" />
</nb-item>
</nb-form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment