How do I only show an element if nested ng-repeat is not empty?

前端 未结 6 1928
没有蜡笔的小新
没有蜡笔的小新 2020-12-25 11:01

I have a List of lists, created with a nested ng-repeat. Each outer ng-repeat contains a div with the label of its inner list (eg: \"Group A\"). I\'m now trying to create a

6条回答
  •  再見小時候
    2020-12-25 11:33

    I ended up with the following solution which worked perfectly. Plnkr

    By setting a variable in the inner ng-repeat I was able to evaluate ng-show based on this variables length like so :

    
    
      
    • {{el.label}}

提交回复
热议问题