Closed bekos closed 9 years ago
This is caused by $compiling
the contents every time the infowindow opens.
I think you should remove both the $compile
and the element.replaceWith('<div></div>')
. I am not sure about the usefulness of it.
I had similar trouble with this, it was causing ng-src
to load multiples of all my images in the infowindows.
Hey Tasos,
Sounds like you understand the issue better than me, would you mind making the changes and submitting a PR?
Dylan
This is caused by $compiling the contents every time the infowindow opens.
I think you should remove both the $compile and the element.replaceWith('<div></div>').
I am not sure about the usefulness of it.
The $compile
line is gone so hopefully that fixes your issue. Let me know if it doesn't. I kept the element.replaceWith('<div></div>')
line since otherwise your infowindow will show up in the dom, which means you could potentially see it on the page!
Is $compile's removal the reason for ng-click failing to fire when inside an infowindow in the latest build?
If inside the body of the infoWindow I have something like
when I open the 2nd or 3rd etc infowindow and click the
<a>
theshow()
is called multiple times.