I am trying to bind ng-click on ng-repeated elements and trying to show/hide a div. For a strange reason, its not working for me. Can any one please take a look ? Adding the fiddle link below
http://jsfiddle.net/uLujthsp/8/
<div data-ng-app="" ng-init="names=['Jani','Hege','Kai']">
<p>Looping with ng-repeat:</p>
<ul>
<li ng-repeat="x in names" ng-click="click!=click">
{{ x }}
</li>
</ul>
<div id="hiddenDiv" ng-class="{show:click}">Showing</div>
</div>