angular/packages/compiler/src
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
..
expression_parser refactor(compiler): expose shorthand object metadata in expression AST (#56405) 2024-06-13 10:12:52 -07:00
i18n refactor(compiler): implement let declarations in html ast (#55848) 2024-05-30 14:55:36 +00:00
ml_parser feat(core): add support for let syntax (#56715) 2024-06-26 12:37:02 -07:00
output refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
render3 feat(core): add support for let syntax (#56715) 2024-06-26 12:37:02 -07:00
schema fix(compiler): add math elements to schema (#55631) 2024-05-02 11:12:14 -07:00
template/pipeline refactor(compiler): integrate let declarations into the template pipeline (#56299) 2024-06-20 08:48:52 -07:00
template_parser refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
assertions.ts fix(compiler): prevent usage of reserved control flow symbol in custom interpolation context. (#55809) 2024-05-16 09:28:13 -07:00
chars.ts refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
compiler.ts refactor(compiler): implement let declarations in render3 ast (#55848) 2024-05-30 14:55:36 +00:00
compiler_facade_interface.ts refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
config.ts refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
constant_pool.ts refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
core.ts refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
injectable_compiler_2.ts refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
jit_compiler_facade.ts feat(core): add support for let syntax (#56715) 2024-06-26 12:37:02 -07:00
parse_util.ts refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
resource_loader.ts refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
selector.ts refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
shadow_css.ts fix(compiler): maintain multiline CSS selectors during CSS scoping (#55509) 2024-05-06 12:39:50 -07:00
style_url_resolver.ts refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
util.ts refactor: migrate compiler to prettier formatting (#55398) 2024-04-18 14:18:08 -07:00
version.ts docs: fix package name in version.ts files in different packages (#41208) 2021-05-10 10:26:34 -04:00