The `NgModule` handler generates `R3References` for its declarations, imports, exports, and bootstrap components, based on the relative import path between the module and the classes it's referring to. This works fine for compilation of a .ts Program inside ngtsc, but in ngcc the import needed in the .d.ts file may be very different to the import needed between .js files (for example, if the .js files are flattened and the .d.ts is not). This commit introduces a new API in the `ReflectionHost` for extracting the .d.ts version of a declaration, and makes use of it in the `NgModuleDecorationHandler` to write a correct expression for the `NgModule` definition type. PR Close #26403
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%