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

77
Vistas
Ionic 2 - angular 2 listener on component

I have a map page with some markers. That markers are created on a function of my component. In the markers info, I would like to add a link to another page. So on my component, where I create the marker, I'm doing something like this:

let text = "Some text <ion-label (click)='onViewUnidade'> My link </ion-label>";

That onViewUnidade function would redirecto to that another page. However, that function is not even called. Is my syntax incorrect? What's the best way to do that? Thanks!


EDIT: checked the possible duplicate, but still can't make it works. Even if change the (click) listener for onClick="onViewUnidade()", my function is still not executed. What am I doing wrong? Thanks

over 4 years ago · Santiago Trujillo
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