Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions adev/src/content/guide/templates/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ Angular has two types of variable declarations in templates: local template vari

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).

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

### Using `@let`

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).
Expand Down
4 changes: 1 addition & 3 deletions tools/manual_api_docs/blocks/let.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@developerPreview

`@let` allows you to define a local variable and re-use it across the template.

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

Similarly to javascript variables, variables declared `@let`, can be used:
Similarly to JavaScript variables, variables declared with `@let`, can be used:

- After they have been declared
- Within the bound of the same scope and nested scopes
Expand Down