18 lines
608 B
HTML
18 lines
608 B
HTML
<!-- #docplaster -->
|
|
<h2>Search Npm Packages</h2>
|
|
<p><i>Searches when typing stops. Caches for 30 seconds.</i></p>
|
|
<!-- #docregion search -->
|
|
<input type="text" (keyup)="search(getValue($event.target))" id="name" placeholder="Search"/>
|
|
<!-- #enddocregion search -->
|
|
<input type="checkbox" id="refresh" [checked]="withRefresh" (click)="toggleRefresh()">
|
|
<label for="refresh">with refresh</label>
|
|
<!-- #docregion search -->
|
|
|
|
<ul>
|
|
<li *ngFor="let package of packages$ | async">
|
|
<b>{{package.name}} v.{{package.version}}</b> -
|
|
<i>{{package.description}}</i>
|
|
</li>
|
|
</ul>
|
|
<!-- #enddocregion search -->
|