Co-authored-by: nilbuild <4921183+nilbuild@users.noreply.github.com>
658 B
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: