I am facing an issue with using the ng-click
within a nested list under another list that also has a ng-click
event. Here is my code snippet:
<ul>
<li
ng-repeat="facet in node.Facets"
ng-click="updateNav(facet.Action)"
ng-cloak
>
{{facet.DisplayValue}}
<ul>
<li ng-repeat="sub in facet.Refinements.Nodes[0].Facets"
ng-click="updateSubNav(sub.Action)"
>
{{sub.DisplayValue}}
</li>
</ul>
</li>
</ul>
The problem I am encountering is that when I click on updateSubNav
, it automatically triggers updateNav
as well. How can I prevent this from happening so that updateNav
and updateSubNav
function independently?