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

167
Vistas
Vue $emit not firing event

$emit event is not firing from inside component. Not sure If I am using $emit correctly but I am assuming I am not because it is not firing. I have a method coming from a mixin file so not sure if that could be causing issue as well.

UPDATE: The emit is firing but it only fires on a page load /hard refresh and then click the trigger

component:

 <template>
      <router-link v-if="useRouterLink" @click.native="$emit('cta-click', $event)" 
      :to="buttonHref" class="cta__button button" v-html="buttonText"> </router-link>
 </template>

parent:

 <CTA @cta-click="gtmCtaClick('Sign Up', 'click')"></CTA>

mixin file:

gtmCtaClick(linkText, action) {
  this.$gtm.push({
    event: 'cta_click',
    link_text: linkText,
    action: action
  })
}
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