Search Posts

Author: Laravel14

ng-repeat duplicated on item change

I have an angular application with sets of array items “array_var”. When I push new sets of array to array_var, I noticed that the ng-repeat in my html creates a duplicate ng-repeat. everytime I push new array to the array_var there is also another duplicate ng-repeat created. Sample ng-repeat: <div ng-repeat=”d in icons track by $index” class=”icons-holder”> <div class=”col-lg-12 col-md-12 col-sm-12 sub-category text-center” ng-hide=”d.date == icons[$index-1].date”> <div class=”searchTag-holder pad-left-25 pad-right-25 d-inline-b”> <ul> <li class=”searchTag”> {! […]