-
Notifications
You must be signed in to change notification settings - Fork 621
Open
Labels
bugSomething isn't workingSomething isn't working
Description
I am interested in helping provide a fix!
Yes
Which generators are impacted?
- All
- Angular
- HTML
- Preact
- Qwik
- React
- React-Native
- Solid
- Stencil
- Svelte
- Vue
- Web components
Reproduction case
Expected Behaviour
An additional import statement (or the existing one replaced) should import the generated module of the component, instead of the component class.
+import { ChildComponentModule } from "./child";
-import { ChildComponent } from "./child";
Actual Behaviour
The generated output is missing a necessary import for the Angular module:
@NgModule({
declarations: [MyComponent],
imports: [CommonModule, ChildComponentModule],
exports: [MyComponent],
})
ChildComponentModule
is not imported in the generated output.
Additional Information
Angular standalone components could be a solid replacement for modules to simplify the generated output.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working