javascript - NG directives not working inside a ng-repeat that is inside another ng-repeat -
so have ng-repeat that's inside ng-repeat. tried use ng-class ng-hide , ng-show it's not working in child ng-repeat. work inside parent. example:
<div class="product" ng-repeat="item in category.products"> <h2 class="product-name">{{item.name}}</h2> <ul class="product-variety"> <li ng-repeat="variation in item.variations" class="{{variation.name}}" ng-hide="true">{{variation.name}}</li> </ul> </div>
the li ng-hide not work. how make work?
Comments
Post a Comment