@NgModule()s get compiled to two fields: ngModuleDef and ngInjectorDef. Both fields contain imports, as both selector scopes and injectors have the concept of composed units of configuration. Previously these fields were generated by static resolution of imports and exports in metadata. Support for ModuleWithProviders requires they be generated differently. ngModuleDef's imports/exports are generated as resolved lists of types, whereas ngInjectorDef's imports should reflect the raw expressions that the developer wrote in the metadata. This change modifies the NgModule handler and properly copies raw nodes for the imports and exports into the ngInjectorDef. PR Close #24862
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%