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

98
Vistas
cant access data return{} varibles in VueJS
function HeaderreRender() { 
  HeaderRender = false;
  this.$nextTick(() => {
    HeaderRender = true;
  });
};

export default {
  name: 'Home',
  components: {
    HeaderItem,
  },
  data: function() { 
    return {
      HeaderRender: true,
    };
  }
}

this is the code now I want to use v-if="HeaderRender" to re-render the headerItem but when I call function HeaderreRender() it is replying to me Uncaught ReferenceError: HeaderRender is not defined on the function

any suggestions? on why this happens?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Try to place the HeadereRender() function within the methods object of the component and also, it's this.HeaderRender=true

In simple terms, this method does not know about the HeaderRender variable, thus it is not defined in the scope of the function, written that way

about 4 years ago · Juan Pablo Isaza Denunciar
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