JS
$scope.mode = "test"
$scope.array = ['test1', 'test2', 'test3']
HTML
<div ng-switch on="mode">
<div ng-repeat="item in array" ng-switch-when="test">
Test {{item}}
</div>
</div>
When I do this the above, the output I get is
Test Test Test
It can't seem to access item. If I remove the ng-switch-when then it works fine.