feat(docs-infra): enable filtering by package on API list page (#24631)

PR Close #24631
This commit is contained in:
Pete Bacon Darwin
2018-07-13 19:45:55 -04:00
committed by Matias Niemelä
parent d8c828c9b1
commit 74b250b146
4 changed files with 46 additions and 43 deletions
@@ -21,10 +21,10 @@
<article class="api-list-container l-content-small docs-content">
<div *ngFor="let section of filteredSections | async" >
<h2><a [href]="section.path">{{section.title}}</a></h2>
<ul class="api-list">
<h2 *ngIf="section.items"><a [href]="section.path">{{section.title}}</a></h2>
<ul class="api-list" *ngIf="section.items?.length">
<ng-container *ngFor="let item of section.items">
<li *ngIf="item.show" class="api-item">
<li class="api-item">
<a [href]="item.path"><span class="symbol {{item.docType}}"></span> {{item.title}}</a>
</li>
</ng-container>