I am relatively new to using AngularJS and I have a JSON structure within my application. I am looking to implement ng-switch to display content from this JSON when it is not empty (as it is an array). The JSON I am referring to is quite large and I am specifically interested in one section of it. Is it achievable with ng-switch alone, or do I need to configure some scope parameters in my controller? Are there other approaches that could also be effective but that I may be unaware of?
JSON
...,
"venues": [{"vid":"12",...},{"vid":"13",},{"vid":"14",..}],...
Markup
<div ng-switch on="team.venues" >
<ul ng-switch-when="venue is not empty">
<li ng-repeat="venue in team.venues">
{{venue.vid}}
</li>
</ul>
<p ng-switch-default>no venue</p>
</div>