Feature: support command-line args for templates and stylesheets
See original GitHub issueIt 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:
- Created 7 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.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.