question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature: support command-line args for templates and stylesheets

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
deebloocommented, Mar 31, 2016

I like settings things in the angular-cli.json works well but I still think there should be provided command line args to overwrite those if needed for a one off.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 7, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

supports - CSS: Cascading Style Sheets - MDN Web Docs
This function evaluates if a browser supports the specified selector syntax. The following example returns true and applies the CSS style if ...
Read more >
danburzo/percollate: A command-line tool to turn web pages ...
A command-line tool to turn web pages into beautiful, readable PDF, EPUB, ... Run percollate --help for a list of available commands and...
Read more >
Document command-line syntax - Google Developers
This page shows how to document command-line commands and their arguments. For more information about formatting code that appears in text, ...
Read more >
Can I use... Support tables for HTML5, CSS3, etc
"Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.
Read more >
Command-line switches for Microsoft Office products
Use command-line switches to customize the startup process for Microsott Office programs: Word, Excel, PowerPoint, Outlook, and Access.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found