Angular, Angular 17, Control Flow, Template Syntax, Ngif Else.
available in the context of a “for” loop A new feature is that we can define an alternate template to display if the array is empty with the @empty block: @for (item of items; track item.name) { <li> {{ item.name }} </li> } @empty { <li> There are no items. </li> } New “switch — case” syntax