angular/packages/compiler-cli
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
..
integrationtest fix(core): link errors to ADEV (#55554) (#56038) 2024-05-28 12:50:53 +02:00
linker feat(core): add support for let syntax (#56715) 2024-06-26 12:37:02 -07:00
ngcc refactor: migrate compiler-cli to prettier formatting (#55485) 2024-04-29 10:25:43 -07:00
private refactor: migrate compiler-cli to prettier formatting (#55485) 2024-04-29 10:25:43 -07:00
src feat(core): add support for let syntax (#56715) 2024-06-26 12:37:02 -07:00
test feat(core): add support for let syntax (#56715) 2024-06-26 12:37:02 -07:00
BUILD.bazel refactor(docs-infra): complete removal of aio directory (#56496) 2024-06-18 12:26:00 -07:00
esbuild.config.js refactor: migrate compiler-cli to prettier formatting (#55485) 2024-04-29 10:25:43 -07:00
index.ts refactor(compiler-cli): support extracting initializer API functions (#54925) 2024-03-26 09:17:20 -07:00
package.json build: update babel dependencies to v7.24.7 (#56373) 2024-06-12 13:11:12 -07:00
tsconfig-build.json refactor(compiler-cli): dismantle View Engine implementation of ngc (#44269) 2021-12-01 10:36:30 -08:00
tsconfig.json build: update tsconfigs to use ES2020 as target and module (#43431) 2021-10-01 18:28:42 +00:00