Skip to content

Could you help me ? #579

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
swim-l opened this issue May 27, 2025 · 1 comment
Open

Could you help me ? #579

swim-l opened this issue May 27, 2025 · 1 comment

Comments

@swim-l
Copy link

swim-l commented May 27, 2025

Hello, I'd like to ask, if the standalone property in a child component is set to true, does the child component still need to import the shared component again even if the shared component has been imported in app.module.ts?

@Nikhil1601
Copy link

Yes, if a child component is marked with standalone: true, it does not use Angular modules like AppModule anymore. This means,
It must explicitly import all the dependencies ,including shared components, directives, pipes, and Angular modules it needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants