Angular 17, Ngif, Ngfor, Ngswitch, Razor.
using Control Flow Syntax: @if(condition) { <div> <ul> @for(person of persons;track $index){ <li>{{person}}</li> } </ul> </div> } Control Flow Syntax Structures if statement : It can be used as follows: @if(condition == 1) { <div> Condition is 1 </div> }@else if(condition == 2) { <div> Condition is