I'm having trouble making the accordion open both when the user has typed something into the search bar and when someone clicks to open it. I can get them to work individually, but not together.
If I use this code:
<accordion-group is-open="status.open" ng-repeat="cat in cats | filter: query">
The accordion only opens when clicked, and if I use this code:
<accordion-group is-open="query.length > 0" ng-repeat="cat in cats | filter: query">
The accordion only opens after a search has been performed by the user.
Is there a way to combine these two conditions? I tried the following code but it didn't work:
<accordion-group is-open="query.length > 0 || status.open" ng-repeat="cat in cats | filter: query">
You can view my code on jsfiddle here.