Skip to content

need a way to globally import components when using standalone component #53161

@dricercar

Description

@dricercar

Which @angular/* package(s) are relevant/related to the feature request?

No response

Description

need a way to globally import components when using standalone component.
before standalone component, we can create a shared module and import it in the root module.
but now when using standalone components, it is necessary to import many module like CommonModule and FormsModule in each standalone component.

Proposed solution

importProvidersFrom([FormsModule, CommonModule) to import components globally

Alternatives considered

or supply another api like importProvidersFrom to import components globally

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions