Add demo folder for search component

Refs #90
This commit is contained in:
Will Abson
2016-06-01 13:14:45 +01:00
parent 06dfbe90f4
commit 335b0f99c9
14 changed files with 507 additions and 18 deletions

View File

@@ -1,7 +1,5 @@
<div style="padding: 20px;">
<h1>Search results</h1>
<p *ngIf="results">Found {{results.length}} results for {{currentSearchTerm}}</p>
<table *ngIf="results" class="mdl-data-table mdl-js-data-table mdl-shadow--2dp full-width">
<p *ngIf="searchTerm">Found {{results.length}} results for {{searchTerm}}</p>
<table *ngIf="searchTerm && results.length" class="mdl-data-table mdl-js-data-table mdl-shadow--2dp full-width">
<thead>
<tr>
<th>
@@ -28,4 +26,3 @@
</tr>
</tbody>
</table>
</div>