मेरे पास कोड का एक टुकड़ा है।कोणीय 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>
कोणीय 1 में मैं orderBy मेरी फिल्टर द्वारा पंक्तियों ऑर्डर करने के लिए फिल्टर की है। लेकिन मैं एंगुलर 2 में ऑर्डर कैसे कर सकता हूं वैसे ही? धन्यवाद।
[कोणीय 2 ऑर्डरबी पाइप] का संभावित डुप्लिकेट (http://stackoverflow.com/q uestions/35158817/कोणीय-2-ऑर्डरबी-पाइप) सामान्य में पाइप के लिए https://angular.io/docs/ts/latest/guide/pipes.html भी देखें –