Hello everyone, I'm encountering an issue with displaying and hiding buttons in ng-repeat.
<div class="row" ng-repeat="item in items">
<button type="button" ng-click="add()">+</button>
<button type="button" ng-click="remove()">-</button>
</div>
It's looping items times, I only want the add button to be visible initially, and on click I want to hide the add button and show the remove button, but only for that specific iteration. I don't want this interaction to affect other iterations. When the remove button is clicked, I want it to hide and show the add button again.
I have considered implementing this functionality either within the controller or inline.
Thank you in advance!