Skip to content

Commit e5adf92

Browse files
crisbetopkozlowski-opensource
authored andcommitted
feat(core): stabilize @let syntax (#57813)
Removes the `@let` syntax from developer preview. PR Close #57813
1 parent 149d69e commit e5adf92

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

adev/src/content/guide/templates/variables.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ Angular has two types of variable declarations in templates: local template vari
66

77
Angular's `@let` syntax allows you to define a local variable and re-use it across a template, similar to the [JavaScript `let` syntax](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let).
88

9-
IMPORTANT: the `@let` syntax is currently in [Developer Preview](/reference/releases#developer-preview).
10-
119
### Using `@let`
1210

1311
Use `@let` to declare a variable whose value is based on the result of a template expression. Angular automatically keeps the variable's value up-to-date with the given expression, similar to [bindings](./bindings).

tools/manual_api_docs/blocks/let.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@developerPreview
2-
31
`@let` allows you to define a local variable and re-use it across the template.
42

53
## Syntax
@@ -14,7 +12,7 @@
1412
`@let` declarations are similar to [JavaScript's `let`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let) and
1513
their values can be any valid Angular expression. The expressions will be re-evaluated everytime the template is executed.
1614

17-
Similarly to javascript variables, variables declared `@let`, can be used:
15+
Similarly to JavaScript variables, variables declared with `@let`, can be used:
1816

1917
- After they have been declared
2018
- Within the bound of the same scope and nested scopes

0 commit comments

Comments
 (0)