You can try this:
<div ng-switch on="!!foo.bar">
<div ng-switch-when="true">
...
</div>
<div ng-switch-default>...</div>
</div>
Regards,
Witold Szczerba
---
Sent from my mobile phone.
Is something like this possible in angularjs?<div ng-switch-on="foo.bar"><div ng-switch-when="{{!null}}">//when not null, display this div</div><div ng-switch-default>//by default, display an empty div</div></div>What do I need to set ng-switch-when to in order to produce the desired behavior?Thanks!Arsen.--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular?hl=en-US.