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>