title: How to hide the delete button when I call onClick function to it
body: <p>I am working on a code where I need to have an option of deleting.</p>
  
  <p>When you click on any of the number listed you will get and (button) option to delete. but Iam unable to hide (Delete button) once the button is clicked.</p>
  
  <p>Can any guide me how to do this.</p>
  
  <p><a href="http://plnkr.co/edit/zrWo2Dfw86DAhR6sos62?p=preview" rel="nofollow">Example</a></p>
  
  <pre><code>    &lt;ul&gt;
     &lt;li ng-repeat="e in arr track by $index"&gt;
      &lt;span ng-click="$parent.selectedIndex=$index"&gt;{{ e }} &lt;button ng-show="$parent.selectedIndex == $index" &gt;delete&lt;/button&gt;&lt;/button&gt;&lt;/span&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  </code></pre>