Skip to content

Add support for inline config by default #33668

Description

@tayambamwanza

Command

new

Description

When generating a new Angular project there are 2 seperate flags for generating the initial app.ts with inline styles and template.

ng new --inline-style --inline-template --name=app-name

After which additional commands need to be run to set the rest of the project to use inline by default:

ng config schematics.@schematics/angular:component.inlineTemplate true
ng config schematics.@schematics/angular:component.inlineStyle true

Describe the solution you'd like

A flag that will both do the initial generation inline and set the config, from the beginning, I have been using inline when generating projects with A.I and passing a single flag would just be a greater convenience.

ng new --inline --name=app-name

or

ng new --sfc --name=app-name

Something like that would suffice.

Describe alternatives you've considered

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions