Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

269
Vistas
Whats the proper way to highlight the text input fields if i make changes to it . I am populating the form if there is param( in form ofid) in url

Working on VueJS.

    <template>
    <v-text-fields v-model="a">
    </template>
    <script>
    export default class SampleClass extends Vue{
      a = null;
    async mounted(){
    if (this.$route.params.id) {
    this.a= populatesFunction();
     } }
    </script>

In above code say i have a form to fill the data and call the api when i click a certain button which will save the data.

But say there is conditional check which look for parameter in url in my case id of the saved entries and if the condition is true then i call a function which perform GET request and retrieve the saved entry and use the retrieved data to populate the fields . In other sense i can edit already saved data.

What i wanted to achieve is to highlight text-fields if there is any kind of change is made(id as param in url). I don't want to highlight text field if i am creating a new entry.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda