angularjs-google-maps icon indicating copy to clipboard operation
angularjs-google-maps copied to clipboard

Info window is not show when first sub element is a comment

Open taitruong opened this issue 8 years ago • 0 comments

You can reproduce the bug with this snippet (taken from issue 648):

    <marker id="event-location"
            position="1163 pandora, victoria, bc, canada">
    </marker>

    <info-window id="event-location-info"
                 visible-on-marker="event-location">
      <!-- BUG here: comment causing info-window-error, remove this line and it work's like a charm -->
      <div ng-non-bindable>
        Test
      </div>
    </info-window>

In this case you get an 'info-window working as a template must have a container'-error. By removing the comment it works fine. It took me a while figuring that out.

HTH, Tai

taitruong avatar Oct 12 '17 11:10 taitruong