<div  ng-show="level1.collapsed || level2.selected"  ng-repeat="level1 in main"> ...
                <div ng-if="level1.sub"> 
                    <div ng-show="level2.collapsed" ng-repeat="level2 in level1.sub">
                        ...
                    </div>
                </div>
            </div>
I have a nested div-structure and as shown in my code i want to change the visibility of div in higher level depend on a value of lower level div.
In my code, || level2.selected does not recognized. Is that possible to do that using a similar way? Preferably without using any variable which should be defined in a controller.
 
    