Homepage
Sign in / Sign up
Go to the profile of Mariano Conti
Mariano Conti
Mar 2, 2016
What the hell is Zone.js and why is it in my Angular 2?
Pete Mertz
344

This worked perfectly. One thing however. How can I pass the marker back to the function so it can do something with the marker data?

I tried:

marker.addListener(‘click’, (res) => {
 this.zone.run(() => {
 this.showDetails(res);
 });
 });

But I’m getting a weird object and not the marke.r

  • Go to the profile of Mariano Conti

    Mariano Conti

    • Share
    Go to the profile of Mariano Conti
    Never miss a story from Mariano Conti, when you sign up for Medium. Learn more
    Never miss a story from Mariano Conti