Last active
April 23, 2017 19:32
-
-
Save kellywoo/185812105cebb0f9e2452c5af626a489 to your computer and use it in GitHub Desktop.
vee-validate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="column is-12"> | |
<label class="label" for="email">Email</label> | |
<p :class="{ 'control': true }"> | |
<input v-validate="'required|email'" | |
:class="{'input': true, 'is-danger': errors.has('email') }" | |
name="email" type="text" placeholder="Email" /> | |
<span v-show="errors.has('email')" class="help is-danger"> | |
{{ errors.first('email') }} | |
</span> | |
</p> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment