I'm setting up a menu with ng-repeat="espaco in espacos"
. So peaceful.
<ul class="nav nav-pills nav-stacked">
<li role="presentation" ng-repeat="espaco in espacos"><a href="" ng-click="selected(espaco)">{{espaco.nome}}</a></li>
</ul>
In controler I am retrieving the "space" clicked and returning information about it coming from a JSON, where some "spaces" have more than one image to display.
In the div that displays the images I'm using ng-repeat="img in i"
but the images are not being updated when I click on another menu item (another space), the following error appears:
Error: [ngRepeat:dupes]