Files

8 lines
658 B
Markdown
Raw Permalink Normal View History

2024-08-30 02:00:02 -04:00
# @case
2026-09-09 10:34:26 +02:00
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.
2024-08-30 02:00:02 -04:00
Visit the following resources to learn more:
2026-06-15 13:44:53 +02:00
- [@official@@switch](https://angular.dev/guide/templates/control-flow#switch-block---selection)
2024-08-30 02:00:02 -04:00
- [@article@Angular @switch: Complete Guide](https://blog.angular-university.io/angular-switch/)