I'm currently working on a nested ng-repeat list feature, and my goal is to apply a specific class to the parent element when any item within the nested list undergoes modification.
Here's how the structure looks:
<div ng-repeat="pa in products" ng-class="{full: vari.basket>0}">
<div ng-repeat="vari in pa.variacions">
<input type="number" ng-model="vari.basket" name="basket" min="0" max="20" step="1" ng-init="vari.basket=0">
</div>
</div>
In essence, I am aiming to assign the full
class whenever the basket value of any 'vari' item exceeds 0.
Unfortunately, the implementation is not yielding the desired results. Can you point out what may be missing from my approach?