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

86
Vistas
Change style inside function two times

I've a vue application. My code:

console.log('1')
document.getElementById('loader').style.visibility = 'visible'
this.encrypted = CryptoJS.AES.encrypt(JSON.stringify(this.em), this.pd).toString();
console.log(this.encrypted)
document.getElementById('loader').style.visibility = 'hidden'
console.log('2')

I tried it with classbind, async await, v-if directives etc. the console.logs are in order so the consol.log('2') is logged at last, and waiting for this.encrypted to be resolved.

What i want is that the #loader is styled during the function, before the execution of this.encrypted and afterwards.

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