Skip to content

docs: cli-reference for ng new incorrectly shows --standalone as defaulting to false #53241

@mvdluit

Description

@mvdluit

Describe the problem that you experienced

The cli reference (adev) for the the new command lists the --standalone flag, mentioning it defaults to false. In v17 standalone is the default behavior. Note that on https://angular.io/cli/new the --standalone flag correctly says that it defaults to true.

The --no-standalone flag is missing (also on angular.io) and IMO could be listed in place of the --standalone flag since that is default behavior now.

Enter the URL of the topic with the problem

https://angular.dev/cli/new

Describe what you were looking for in the documentation

No response

Describe the actions that led you to experience the problem

No response

Describe what you want to experience that would fix the problem

  • Update the --standalone flag to correctly show it's the default behavior (e.g default true). (or maybe replace it with the --no-standalone as it's now the default behavior.)

  • Add --no-standalone flag to inform how to create a project based on NgModules. (both on .dev and .io).

Add a screenshot if that helps illustrate the problem

No response

If this problem caused an exception or error, please paste it here

No response

If the problem is browser-specific, please specify the device, OS, browser, and version

No response

Provide any additional information here in as much as detail as you can

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: docsRelated to the documentationstate: blocked

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions