1<container-element [ngSwitch]="switch_expression">
2 <!-- the same view can be shown in more than one case -->
3 <some-element *ngSwitchCase="match_expression_1">...</some-element>
4 <some-element *ngSwitchCase="match_expression_2">...</some-element>
5 <some-other-element *ngSwitchCase="match_expression_3">...</some-other-element>
6 <!--default case when there are no matches -->
7 <some-element *ngSwitchDefault>...</some-element>
8</container-element>
1<container-element [ngSwitch]="switch_expression">
2 <some-element *ngSwitchCase="match_expression_1">...</some-element>
3</container-element>