request - show error message on input #279

donnygunawan93 opened this Issue Dec 22, 2016 · 1 comment


None yet

2 participants

donnygunawan93 commented Dec 22, 2016 edited
<div class="item-content">
    <div class="floating-label">
        <input v-model="login"  required class="full-width" :class="errors.first('login') ? 'has-error' : ''">
        <label>Username or Email</label>
    <small><sup class="text-red">{{ errors.first('login') }}</sup></small>

I need to check if "has-error", then print the error below.
Would be great if we can do in a single move like this
<input v-model="login" class="full-width" msgError="errors.first('login')">


Yes, good idea. Will work on this. Thanks!

@rstoenescu rstoenescu added this to the v0.13 milestone Dec 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment