For view and content queries, the Ivy compiler attempts to statically evaluate the predicate token so that string predicates containing comma-separated reference names can be split into an array of strings during compilation. When the predicate is a dynamic value that cannot be statically interpreted at compile time, the compiler would previously produce an error. This behavior breaks a use-case where an `InjectionToken` is being used as query predicate, as the usage of the `new` keyword prevents such predicates from being statically evaluated. This commit changes the behavior to no longer produce an error for dynamic values. Instead, the expression is emitted as is into the generated code, postponing the evaluation to happen at runtime. Fixes #34267 Resolves FW-1828 PR Close #35307
build: migrate references and scripts that set to build with ivy via compile=aot to use config=ivy (#33983)
Angular
Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages.
Quickstart
Changelog
Learn about the latest improvements.
Want to help?
Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing and then check out one of our issues in the hotlist: community-help.
Languages
TypeScript
68.6%
HTML
12.8%
JavaScript
8.4%
Pug
7%
Starlark
1.4%
Other
1.7%