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
|
||
|---|---|---|
| .. | ||
| util | ||
| view | ||
| BUILD.bazel | ||
| r3_ast_absolute_span_spec.ts | ||
| r3_ast_spans_spec.ts | ||
| r3_template_transform_spec.ts | ||
| README.md | ||
| style_parser_spec.ts | ||
Tests in this directory are excluded from running in the browser and only run in node.