docs(angular): add switch content (#6842)
parent
58b5b5214e
commit
99054a36a6
1 changed files with 8 additions and 1 deletions
@ -1 +1,8 @@ |
|||||||
# @switch |
# @switch |
||||||
|
|
||||||
|
The `@switch` blocks displays content selected by one of the cases matching against the conditional expression. The value of the conditional expression is compared to the case expression using the `===` operator. `@switch` does not have fallthrough, so you do not need an equivalent to a break or return statement. |
||||||
|
|
||||||
|
Visit the following resources to learn more: |
||||||
|
|
||||||
|
- [@official@Angular Official Docs - @switch](https://angular.dev/guide/templates/control-flow#switch-block---selection) |
||||||
|
- [@article@Angular @switch: Complete Guide](https://blog.angular-university.io/angular-switch/) |
Loading…
Reference in new issue