Files
developer-roadmap/roadmaps/angular/content/case@cHC2MH50CbUSMRZV4QGJI.md

658 B

@case

The @case block is a control flow directive used within template expressions to match a specific value against an expression defined in a preceding @switch statement. When the value associated with a @case matches the switch expression, the content inside that block renders to the DOM. If no match is found among the defined cases, the template can optionally display a @default block as a fallback.

Visit the following resources to learn more: