I want to hide detail of others and show the detail of the current clicked name
http://jsbin.com/tewegahobi/edit?html,js,output
<li ng-click="showDetail = true" ng-repeat="item in items">{{item.name}}
<span ng-show="showDetail == true">{{item.detail}}</span>
</li>
Not sure I'm doing it right, I'm able to click to show the detail, but it doesn't hide others' detail when I clicked on particular name.