Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

76
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!