Angular js : Dynamic expression not working for ng-switch

61 views Asked by At

I have a div based on switch but the switch has a boolean variable(hasUrl) and expression. Can some one tell me what I am doing wrong here ?

  <div ng-switch="hasUrl && row.id.indexOf(':') < 0">
    <a ng-switch-when="true" href="{{url + row.id}}"> 
    {{getName(row)}}
    </a>
    <a ng-switch-default href=".......">
      {{getName(row)}}
    </a>
  </div>
0

There are 0 answers