angular/packages
Kristiyan Kostadinov fb1fa8b0fc fix(compiler-cli): more accurate diagnostics for host binding parser errors (#58870)
Currently host bindings are in a bit of a weird state, because their source spans all point to the root object literal, rather than the individual expression. This is tricky to handle at the moment, because the object is being passed around as a `Record<string, string>` since the compiler needs to support both JIT and non-JIT environments, and because the AOT compiler evaluates the entire literal rather than doing it expression-by-expression. As a result, when we report errors in one of the host bindings, we end up highlighting the entire expression which can be very noisy in an IDE.

These changes aim to report a more accurate error for the most common case where the `host` object is initialized to a `string -> string` object literal by matching the failing expression to one of the property initializers. Note that this isn't 100% reliable, because we can't map cases like `host: SOME_CONST`, but it's still better than the current setup.

PR Close #58870
2024-11-25 15:25:48 +00:00
..
animations refactor(core): Migrate all packages with the explicit-standalone-flag schematic. (#58160) 2024-10-14 14:58:57 +00:00
bazel fix(bazel): allow strictStandalone to be passed through tsconfig (#58683) 2024-11-15 12:53:10 +01:00
benchpress build: update cross-repo angular dependencies (#58666) 2024-11-19 16:51:40 -08:00
common refactor(core): use ApplicationRef.whenStable instead of a custom util function (#58834) 2024-11-25 15:25:10 +00:00
compiler fix(compiler-cli): more accurate diagnostics for host binding parser errors (#58870) 2024-11-25 15:25:48 +00:00
compiler-cli fix(compiler-cli): more accurate diagnostics for host binding parser errors (#58870) 2024-11-25 15:25:48 +00:00
core refactor(core): use ApplicationRef.whenStable instead of a custom util function (#58834) 2024-11-25 15:25:10 +00:00
docs/di docs: remove outdated/unsupported webworker doc (#49856) 2023-04-17 14:01:41 +00:00
elements refactor(core): Migrate all packages with the explicit-standalone-flag schematic. (#58160) 2024-10-14 14:58:57 +00:00
examples build: remove usages of useDefineForClassFields: false (#58297) 2024-10-28 12:26:06 -07:00
forms refactor(forms): work around another TypeScript 5.7 issue (#58782) 2024-11-21 16:36:15 +00:00
language-service refactor(language-service): reuse code fixes map for has fix check (#58759) 2024-11-20 08:10:16 -08:00
localize build: update babel dependencies (#58499) 2024-11-06 06:59:44 +01:00
misc/angular-in-memory-web-api build: publish angular-in-memory-web-api@0.19.0 for v19 compatibility (#58741) 2024-11-19 16:55:59 +00:00
platform-browser fix(platform-browser): correctly add external stylesheets to ShadowDOM components (#58482) 2024-11-05 11:33:17 +01:00
platform-browser-dynamic refactor(core): Migrate all packages with the explicit-standalone-flag schematic. (#58160) 2024-10-14 14:58:57 +00:00
platform-server refactor(core): use ApplicationRef.whenStable instead of a custom util function (#58834) 2024-11-25 15:25:10 +00:00
private/testing refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
router fix(router): remove setter for injector on OutletContext (#58343) 2024-10-24 16:41:04 -07:00
service-worker build: remove usages of useDefineForClassFields: false (#58297) 2024-10-28 12:26:06 -07:00
ssr refactor(core): add REQUEST, RESPONSE_INIT and REQUEST_CONTEXT tokens (#58669) 2024-11-14 14:21:21 -08:00
upgrade refactor(core): Migrate all packages with the explicit-standalone-flag schematic. (#58160) 2024-10-14 14:58:57 +00:00
zone.js build: lock file maintenance (#58867) 2024-11-25 15:21:03 +00:00
BUILD.bazel refactor(core): add REQUEST, RESPONSE_INIT and REQUEST_CONTEXT tokens (#58669) 2024-11-14 14:21:21 -08:00
circular-deps-test.conf.js refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
empty.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
goog.d.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
license-banner.txt build: update licence date. (#55129) 2024-04-08 11:31:12 -07:00
README.md docs: fix links to docs (#57391) 2024-08-19 09:20:15 -07:00
system.d.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
tsconfig-build.json build: remove usages of useDefineForClassFields: false (#58297) 2024-10-28 12:26:06 -07:00
tsconfig-legacy-saucelabs.json feat(core): support TypeScript 5.5 (#56096) 2024-05-29 15:33:33 +02:00
tsconfig-test.json
tsconfig-tsec-base.json refactor(core): throw an error when hydration marker is missing from DOM (#51170) 2023-08-04 11:31:49 -04:00
tsconfig.json feat(language-service): add code reactoring action to migrate @Input to signal-input (#57214) 2024-08-29 07:50:41 -07:00
tsec-exemption.json fix(core): hardening attribute and property binding rules for <iframe> elements (#47964) 2022-11-09 00:47:56 -08:00
types.d.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Angular documentation.

License: MIT