Angular, Angular 17, Control Flow, Template Syntax, Ngif Else.
less than {{b}} } @else { {{a}} is equal to {{b}} } New “for” loop syntax The ngFor directive can also be replaced with a similar syntax: @for (item of items; track item.id) { {{ item.name }} } Note that the track parameter is required, but unlike ngFor’s trackBy, it doesn’t require a function and