Co-authored-by: nilbuild <4921183+nilbuild@users.noreply.github.com>
8 lines
658 B
Markdown
8 lines
658 B
Markdown
# @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:
|
|
|
|
- [@official@@switch](https://angular.dev/guide/templates/control-flow#switch-block---selection)
|
|
- [@article@Angular @switch: Complete Guide](https://blog.angular-university.io/angular-switch/) |