Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

ui-gmap-windows directive doesn't allow me to use ng-if, or ng-switch, but will template #1596

@mjabraham47

Description

@mjabraham47

Basically, I want to use some kind of conditional directive within the "ng-non-bindable" element in order to selectively render some icons onto my infowindow.

Is this at all possible?

   <ui-gmap-markers models="locations"
      idKey='id'
       coords="'self'"
        >
      <ui-gmap-windows show="show">
            <div ng-non-bindable>
            {{obj.name}}<br>{{distance}} miles

            <span ng-switch="'{{men}}'">
            <span ng-switch-when="2" class="ion-man" ></span> 
            <span ng-switch-when="1"></span>
            </span>
            <span ng-switch="'{{women}}'">
            <span ng-switch-when="2" class="ion-woman" ></span> 
            <span ng-switch-when="1"></span>
            </span>
            <span ng-switch="{{fam}}">
            <span ng-switch-when="2" class="ion-ios-people"></span>
            <span ng-switch-when="1"></span>
            </span> 
            </div>                     
        </ui-gmap-windows>
   </ui-gmap-markers>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions