ng-class is not working with multiple condition. Apply a class when both conditions are true
Here open and active class should apply when childActive is equal to header and list items is not empty
<li ng-class="{'open':list.items.length&&childActive==header,
'active':list.items.length&&childActive==header}"
ng-repeat="list in listEntities">