mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
committed by
Alex Rickabaugh
parent
081f5f5a83
commit
00a9331fe8
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user