Skip to content
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

Add --standalone option to ng new #23976

Closed
Lonli-Lokli opened this issue Sep 28, 2022 · 11 comments · Fixed by #24848
Closed

Add --standalone option to ng new #23976

Lonli-Lokli opened this issue Sep 28, 2022 · 11 comments · Fixed by #24848
Labels
area: schematics/angular feature: in backlog Feature request for which voting has completed and is now in the backlog feature Issue that requests a new feature

Comments

@Lonli-Lokli
Copy link

Command

new

Description

Right now ng new do not use standalone application bootstrap, but usual app instead.
Nw option should change application to the standalone option, without AppModule

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

@alan-agius4 alan-agius4 added feature Issue that requests a new feature area: schematics/angular labels Sep 29, 2022
@angular-robot

This comment was marked as resolved.

@angular-robot angular-robot bot added the feature: votes required Feature request which is currently still in the voting phase label Sep 29, 2022
@Lonli-Lokli
Copy link
Author

@alan-agius4 can you vote for this as well? :)

@alan-agius4 alan-agius4 added feature: in backlog Feature request for which voting has completed and is now in the backlog and removed feature: votes required Feature request which is currently still in the voting phase labels Oct 11, 2022
@alan-agius4
Copy link
Collaborator

@Lonli-Lokli, this is already in the backlog.

@mounilKshah
Copy link

If no one else is working on this issue, can I work on it?

@alan-agius4
Copy link
Collaborator

@mounilKshah, thanks for offering to take this up. The new project structure is still in its design phase.

@LMFinney
Copy link

Any update on where this is on the roadmap?

@arturober
Copy link

arturober commented Dec 20, 2022

When creating an app with this option. Will the CLI generate standalone components/directives in the project by default? (not needing --standalone flag). What about generating functional guards/interceptors/resolvers by default?

Like @LMFinney said. Is there any information regarding when / how will this be implemented? . I've been using (and teaching) these last 2 months Angular 15 with standalone components and functional guards/interceptors/resolvers, and I find it simpler and cleaner. Sadly there are many libraries (including Universal) that still don't support apps without AppModule (using bootstrapApplication) and fail when executing ng add (Bootstrap module not found).

@zjkipping
Copy link

zjkipping commented Jan 20, 2023

@mounilKshah @alan-agius4 Any updates on this? Seems like a pretty major thing to not include with the CLI now that the standalone api has shipped in v15. This is a pretty major setback for myself and the others at my company when it comes to teaching any curriculum related to Angular with the standalone api since we generate a fresh angular app to workshop on with learned topics/patterns.

Unfortunately at this point, I will probably have to end up going with some version of a Nx workspace (or the angular-standalone preset Nx has). Nx has had this functionality for a while with their generators and this doesn't seem to have much priority for the Angular CLI.

@Flo0806
Copy link

Flo0806 commented Mar 11, 2023

I think the CLI need to have the --standalone flag, too. Is there any update?

@Flo0806
Copy link

Flo0806 commented Mar 15, 2023

You guys are the best! 🎊 Thx!

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: schematics/angular feature: in backlog Feature request for which voting has completed and is now in the backlog feature Issue that requests a new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants