1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-09-03 06:12:53 +02:00

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

This commit is contained in:
J. Degand
2024-08-30 02:01:12 -04:00
committed by GitHub
parent 58b5b5214e
commit 99054a36a6

View File

@@ -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/)