Answers for "ngFor with condition"

2

ngFor and ngIf

<li *ngFor="let user of users; index as i; first as isFirst">
  {{i}}/{{users.length}}. {{user}} <span *ngIf="isFirst">default</span>
</li>
Posted by: Guest on April-17-2021
0

id condition with ngfor in angular 10

static ngTemplateContextGuard<T, U extends NgIterable<T>>(dir: NgForOf<T, U>, ctx: any): ctx is NgForOfContext<T, U>
Posted by: Guest on December-18-2020

Browse Popular Code Answers by Language