我只想让 *ngFor 循环按 name 属性对其进行排序。 <table *ngIf="values.length"> ... 只需将 pipe 名称放入html文件中: <tr *ngFor="let elem of values | sort">.
確定! 回上一頁