Previously, ngtsc would perform scope analysis (which directives/pipes are available inside a component's template) and template type-checking of that template as separate steps. If a component's scope was somehow invalid (e.g. its NgModule imported something which wasn't another NgModule), the component was treated as not having a scope. This meant that during template type-checking, errors would be produced for any invalid expressions/usage of other components that should have been in the scope. This commit changes ngtsc to skip template type-checking of a component if its scope is erroneous (as opposed to not present in the first place). Thus, users aren't overwhelmed with diagnostic errors for the template and are only informed of the root cause of the problem: an invalid NgModule scope. Fixes #33849 PR Close #34460
build: migrate references and scripts that set to build with ivy via compile=aot to use config=ivy (#33983)
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.
Description
Languages
TypeScript
68.6%
HTML
12.8%
JavaScript
8.4%
Pug
7%
Starlark
1.4%
Other
1.7%