Skip to content

Feature: support command-line args for templates and stylesheets #349

Closed
@d-koppenhagen

Description

@d-koppenhagen

It would be nice to have some command line parameters for ng g my-component. E.g. to specify if a separate .html-file should should be created or maybe inline-HTML is enough.
Here some suggestions:

ng g component my-component arg

arg description
--template use template: 'my-component works' instead of templateUrl: 'path/to/file.html'
--styles use styles: [] instead of styleUrls: ['path/to/file.css']
--no-style no styles: [] or styleUrls: ['path/to/file.css'] in the component

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions