I face a very weird issue I cannot find my way out to fix it.
I've got $scope.categoryId used in a system menu to point to the current category.
In a ng-repeat thru categories, I have a ng-click that sets the current category, but doesn't work. Even more weird, if I place a standalone tag, the thing works.
Code snippet is as follows:
<!-- click manages to inc -->
<p ng-click="categoryId = categoryId+1">++ : {{categoryId}}</p>
<!-- click doesn't manage to inc -->
<p
ng-repeat="c in categories"
ng-click="categoryId = categoryId+1">
{{$index}} : {{categoryId}}
</p>
Any idea?