I am trying to use a repeater to display views in an accordion, with the requirement that the views be conditionally loaded. I attempted to add an ng-if condition to check if current == true on the repeater's elements, but it does not seem to work as intended. My project uses Angular 1.0.8.
To see my code in action, visit this JSFiddle link.
<div data-ng-view></div> is currently displaying the same view repeatedly.
Update:
Since Angular 1.0.8 does not support ng-if, I have opted to use the switch statement instead.
<div ng-switch="group.current">
<div ng-switch-when="true">
<div data-ng-view></div>
</div>
</div>