Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

78
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda