Skip to content

Angular Component Extractor: Accommodate standalone components #58

@syah284

Description

@syah284

The Angular Component Extractor extension for VS Code is a great tool for splitting components in an Angular project. However, it currently does not support standalone components.

Standalone components are a new feature in Angular 14 that allows you to create components without requiring a module. This can be useful for creating small and reusable components.

I would like to request that the Angular Component Extractor extension be updated to accommodate standalone components. This would involve the following changes:

  • The extension should be able to detect standalone components, even if they are not in a module.
  • The extension should be able to generate a standalone component template.
  • The extension should be able to update the component selector to reflect the standalone component's name.

I believe that this update would make the Angular Component Extractor even more useful for Angular developers.

Thank you for your consideration.

Additional information:

  • The Angular Component Extractor extension is available on the Visual Studio Code Marketplace.
  • Standalone components are a new feature in Angular 14. More information can be found here: Angular Standalone Components

Example:

Angular CLI

ng g component component --standalone -c OnPush -s -t --flat 

Benefits:

  • Makes it easier to split components in an Angular project.
  • Can be used to create small and reusable components.
  • Can be used to create standalone components.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions