私はコードを持っています。アンギュラ1では角2.注文の仕方は?
<table class="table table-bordered table-condensed" cellpadding="0" cellspacing="0">
<thead>
<tr>
<th>#</th>
<th>Name</th>
<th>Score</th>
</tr>
</thead>
<tbody>
<tr *ngFor="#participant of participants; #i = index">
<td>{{i+1}}</td>
<td>{{participant.username}}</td>
<td>{{participant.score}}</td>
</tr>
</tbody>
</table>
私は私のフィルタで行を注文するORDERBYフィルタを持っています。しかし、どのように私は同じ方法で角度2でorderByを行うことができますか?ありがとうございました。
[Angular 2 OrderBy Pipe]の可能な複製(http://stackoverflow.com/q uestions/35158817 /角度-2-orderbyのパイプ)も参照してくださいhttps://angular.io/docs/ts/latest/guide/pipes.html一般 –