<li *ngFor="#user of users ">
{{ user.name }} is {{ user.age }} years old.
</li>
Is it possible to invert the ngFor that the items are added bottom up?
See Question&Answers more detail:os<li *ngFor="#user of users ">
{{ user.name }} is {{ user.age }} years old.
</li>
Is it possible to invert the ngFor that the items are added bottom up?
See Question&Answers more detail:osYou can simply use JavaScript's .reverse()
on the array. Don't need an angular specific solution.
<li *ngFor="#user of users.slice().reverse() ">
{{ user.name }} is {{ user.age }} years old.
</li>
See more here: https://www.w3schools.com/jsref/jsref_reverse.asp