title: Displaying the item that is after and before in ng-repeat AngularJS
body: <p>I did : </p>
  
  <pre><code>&lt;li ng-repeat="card in cards" ng-if="list._id == card.list"&gt;{{card.name}} 
  &lt;button ng-click="take($index)"&gt;HERE&lt;/button&gt;{{ $index}}&lt;/li&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/96VeN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/96VeN.png" alt="enter image description here"></a></p>
  
  <p>And I have question:</p>
  
  <p>If I displayed items from the board by ng-repeat also ng-if, how can i do that after click Here will be displayed console.log() with name before item and after??</p>
  
  <p>In blackboard There are mixed cards for different lists.</p>