Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

90
Views
How to apply vuelidate and a value to the input field in Vue

I am using vuelidate in my form to validate my input field. But at the same time, I am getting the user object as a prop and I want to show the first name of the object as a value of input field. Here is the code that I try but since I trim the value of the input field, I think I am not able to use v-model to show my value anymore.

<input type="text" id="first_name" class="form-control" v-model="user.attributes.first_name"
                   @keyup.enter="updateProfile" v-model.trim="$v.first_name.$model"
                   :class="{'is-invalid':$v.first_name.$error, 'is-valid':!$v.first_name.$invalid}">
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!