One way to convert the example (assuming you want to use ngSwitch):
<ul ng-controller="ListController"> <li ng-repeat="item in items" ng-controller="ItemController"> <div ng-click="open(item)">{{item.content}}</div> </li> <hr> <ng-switch on="anyItemOpen()"> <div ng-switch-when="true"> <div ng-controller="ItemController"> {{opened.name}}: overlay: tweet, share, pin </div> <a ng-click="close()">close</a> </div> </ng-switch> </ul>
And here is the working jsFiddle: http://jsfiddle.net/pkozlowski_opensource/sJdzt/4/
Your jsFiddle did not work, as you tried to reference the item created in the ngRepeat scope (and therefore not available outside of ngRepeat).
source share