mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Enables the new `@let` syntax by default.
`@let` declarations are defined as:
1. The `@let` keyword.
2. Followed by one or more whitespaces.
3. Followed by a valid JavaScript name and zero or more whitespaces.
4. Followed by the `=` symbol and zero or more whitespaces.
5. Followed by an Angular expression which can be multi-line.
6. Terminated by the `;` symbol.
Example usage:
```
@let user = user$ | async;
@let greeting = user ? 'Hello, ' + user.name : 'Loading';
<h1>{{greeting}}</h1>
```
Fixes #15280.
PR Close #56715
|
||
|---|---|---|
| .. | ||
| legacy | ||
| adapters_spec.ts | ||
| BUILD.bazel | ||
| code_fixes_spec.ts | ||
| compiler_spec.ts | ||
| completions_spec.ts | ||
| definitions_spec.ts | ||
| diagnostic_spec.ts | ||
| get_outlining_spans_spec.ts | ||
| get_template_location_for_component_spec.ts | ||
| gettcb_spec.ts | ||
| quick_info_spec.ts | ||
| references_and_rename_spec.ts | ||
| signature_help_spec.ts | ||
| ts_utils_spec.ts | ||
| type_definitions_spec.ts | ||