request - show error message on input #279

Open
donnygunawan93 opened this Issue Dec 22, 2016 · 1 comment

Projects

None yet

2 participants

@donnygunawan93
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>
    </div>
    <small><sup class="text-red">{{ errors.first('login') }}</sup></small>
</div>

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 https://museui.github.io/#/textField
<input v-model="login" class="full-width" msgError="errors.first('login')">

@rstoenescu
Collaborator

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