Co-authored-by: nilbuild <4921183+nilbuild@users.noreply.github.com>
8 lines
651 B
Markdown
8 lines
651 B
Markdown
# @let
|
|
|
|
The `@let` declaration is a template syntax feature that allows you to define local variables directly within an Angular template. It enables you to assign values to a variable name that can be reused throughout a specific section of the markup, which helps simplify complex expressions and improves code readability. These variables are immutable and scoped strictly to the template block where they are defined.
|
|
|
|
Visit the following resources to learn more:
|
|
|
|
- [@official@@let](https://angular.dev/api/core/@let)
|
|
- [@article@Angular's next feature let syntax](https://nhannguyendevjs.medium.com/angulars-next-feature-let-syntax-afba6354112b) |