docs(angular): add switch content (#6842)

This commit is contained in:
J. Degand
2024-08-30 12:01:12 +06:00
committed by GitHub
parent 58b5b5214e
commit 99054a36a6
@@ -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/)