angular-docs-cn/aio/content/examples/upgrade-phonecat-2-hybrid/app/phone-list/phone-list.template.html

41 lines
1004 B
HTML

<div class="container-fluid">
<div class="row">
<div class="col-md-2">
<!--Sidebar content-->
<!-- #docregion controls -->
<p>
Search:
<input [(ngModel)]="query" />
</p>
<p>
Sort by:
<select [(ngModel)]="orderProp">
<option value="name">Alphabetical</option>
<option value="age">Newest</option>
</select>
</p>
<!-- #enddocregion controls -->
</div>
<div class="col-md-10">
<!--Body content-->
<!-- #docregion list -->
<ul class="phones">
<li *ngFor="let phone of getPhones()"
class="thumbnail phone-list-item">
<a href="/#!/phones/{{phone.id}}" class="thumb">
<img [src]="phone.imageUrl" [alt]="phone.name" />
</a>
<a href="/#!/phones/{{phone.id}}" class="name">{{phone.name}}</a>
<p>{{phone.snippet}}</p>
</li>
</ul>
<!-- #enddocregion list -->
</div>
</div>
</div>