mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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 |
||
|---|---|---|
| .. | ||
| bin | ||
| ngtsc | ||
| transformers | ||
| extract_i18n.ts | ||
| main.ts | ||
| perform_compile.ts | ||
| perform_watch.ts | ||
| typescript_support.ts | ||
| version.ts | ||
| version_helpers.ts | ||