TThe improved ergonomics is even more visible with *ngSwitch:
The new control flow enables significantly better type-narrowing in the individual branches in @switch, which is impossible in *ngSwitch.
Related Articles
Before Angular 17,
Which with the built-in control flow turns into:
From Angular 17,
@switch (accessLevel) {
@case ('admin') { }
@case ('moderator') {
@default {
}