@switch
Introduction
Section titled “Introduction”@switch replaces [ngSwitch] with a cleaner, more readable syntax.
Example
Section titled “Example”@switch (status) { @case ('loading') { <app-spinner /> } @case ('success') { <app-success /> } @case ('error') { <app-error /> } @default { <p>Unknown status</p> }}Summary
Section titled “Summary”@switch provides a more readable alternative to ngSwitch.”