Lets say, I am repeating a div with using ng-repeat | limitTo:6 , (and also let say I have 5000 of them)
and when I click on the div , the div will be removed . And then there will be only 5 items shown.
How can I edit it , so that when an item from the ng-repeat list removed, the next Item will be shown ?
<div class = "col-xs-12">
<!-- selectingUser(user) ; -->
<div ng-if="!user.isSelected" data-ng-click = "selectingUser(user)" data-ng-repeat="user in users " > <!-- | filter:$select.search -->
<img class="img-circle" data-ng-src ="{{user.image}}" width="8%"/>
<span data-ng-bind-html="user.name" ></span>
</div>
</div>
as you see here, the div will be shown only if user.isSelected = false
Assuming you want to remove it on click of selectingUser then you can do is
Just set isslected value to true -
OR Remove it from deep copied array -