Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

ionic-angular: No support for Standalone Components #18

Open
paulmojicatech opened this issue Nov 13, 2023 · 0 comments
Open

ionic-angular: No support for Standalone Components #18

paulmojicatech opened this issue Nov 13, 2023 · 0 comments

Comments

@paulmojicatech
Copy link
Contributor

Is your feature request related to a problem? Please describe.
This feature is not related to a problem but seeing as the Angular team is making standalone components the default with their generate component command, it would be nice to have this option when creating a new application with the nx g @nxext/ionic-angular:application "<% my app name %>" --standalone

Describe the solution you'd like
Having a different set of template file when the standalone flag is specified. It looks like the code has this already in the generator script but the template files have not been created yet.

Describe alternatives you've considered
We can work around it by manually updating the main.ts file, creating a routes file, removing the modules and updating the generated components with the standalone: true option.

Additional context
files.ts

const filesDir = options.standalone
    ? normalizePath(__dirname + `/../files/${options.template}-standalone`)
    : normalizePath(__dirname + `/../files/${options.template}`);
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant