angular/packages/compiler/test/ml_parser
Kristiyan Kostadinov 0a48d584f2 feat(core): add support for let syntax (#56715)
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
2024-06-26 12:37:02 -07:00
..
util refactor(compiler): implement let declarations in html ast (#55848) 2024-05-30 14:55:36 +00:00
ast_serializer_spec.ts test(core): clean up unnecessary nesting in old tests (#52239) 2023-10-19 09:26:15 -07:00
ast_spec_utils.ts refactor(compiler): implement let declarations in html ast (#55848) 2024-05-30 14:55:36 +00:00
BUILD.bazel build: ensure bootstrap transitive runfiles are made available (#48521) 2022-12-19 19:50:41 +00:00
html_parser_spec.ts feat(core): add support for let syntax (#56715) 2024-06-26 12:37:02 -07:00
html_whitespaces_spec.ts refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
icu_ast_expander_spec.ts refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
lexer_spec.ts feat(core): add support for let syntax (#56715) 2024-06-26 12:37:02 -07:00