Angular 17, Ngif, Ngfor, Ngswitch, Razor.
persons;track $index) { <li>{{person}}</li> } @empty { <li> <strong>No person</strong> </li> } </ul> In the previous versions, we needed *ngIf to perform the below check and display a message if the collection was empty. The new syntax makes the process much simpler and more elegant, doesn’t it? By