Mam kawałek kodu.Angular 2. Jak zastosować orderBy?
<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>
kątowej 1 mam orderby filtr na zamówienie wiersze mojego filtra. Ale jak mogę zrobić orderBy w Angular 2 w ten sam sposób? Dziękuję Ci.
Prawdopodobny duplikat [Angular 2 OrderBy Pipe] (http://stackoverflow.com/q uses/35158817/angular-2-orderby-pipe) Zobacz także https://angular.io/docs/ts/latest/guide/pipes.html dla rur ogólnie –