Skip to content

Instantly share code, notes, and snippets.

@kellywoo
Last active April 23, 2017 19:32
Show Gist options
  • Save kellywoo/185812105cebb0f9e2452c5af626a489 to your computer and use it in GitHub Desktop.
Save kellywoo/185812105cebb0f9e2452c5af626a489 to your computer and use it in GitHub Desktop.
vee-validate
<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