hides api sections when there are no items to display

This commit is contained in:
Robert Messerle 2015-10-19 05:58:33 -07:00
parent a1e5b679cd
commit dfa83109fb
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ div(ng-cloak).banner
dd.var(ng-class='{ active: apiType === "var" }' ng-click='setType("var")') Variable
input.api-filter(placeholder='Filter', ng-model='apiFilter')
article(class="l-content-small grid-fluid docs-content")
div(ng-repeat='section in apiSections' ng-cloak)
div(ng-repeat='section in apiSections' ng-if="(apiList[section.name] | filter: { title: apiFilter, docType: apiType }).length" ng-clock)
h3 {{ section.title }}
ul.api-list
li.api-item(ng-repeat='item in apiList[section.name] | filter: { title: apiFilter, docType: apiType }')