I am facing an issue with 2 nested ng-repeats
. The parent one is supposed to add a class based on ng-click
, but even when I click the child, it still triggers when I don't want it to.
<div class="add-filter-tags" data-filter="{{f1}}" ng-class="{'tag_selected' : tag_selected }" ng-repeat="(f1,f2) in filters" ng-click="tag_selected = !tag_selected;">
<span>{{f1}}</span>
<div class="add-filter-tags sub-filter-tag" data-filter="{{f1_2}}" ng-click="$parent.$event.stopPropagation()" ng-repeat="(f1_2,f2_2) in filters[f1]" sibs ><span>{{f1_2}}</span></div>
</div>
UPDATE: I have already attempted removing $parent
but the issue persists.