I want to make a dynamic page, that depending of some aspects shows one list or another list, both arrays have different variable names. I tried to use somethings to put dynamic ng-repeat expression but without success.
Anyone has some suggestion? I made a fiddle to explain what i need.
<div ng-repeat="item in itemsToShow" >
<!--THIS IS THE EXPRESSION THAT I WANT DYNAMIC-->
{{item.name}}, {{item.title}}
[fiddle] http://jsfiddle.net/eTTZj/867/