mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
parent
081f5f5a83
commit
00a9331fe8
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ Angular's `@let` syntax allows you to define a local variable and re-use it acro
|
|||
|
||||
### 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).
|
||||
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](./templates/bindings).
|
||||
|
||||
```angular-html
|
||||
@let name = user.name;
|
||||
|
|
|
|||
Loading…
Reference in a new issue