The angular-cli tool can help you to scaffold different parts of an angular application (components, directives, pipes, services, classes, guards, interfaces, enums and modules).
Parameter | Description |
---|---|
component or c | Used to generate component |
directive or d | Used to generate directives |
service or s | Used to generate services |
pipe or p | Used to generate pipes |
class or cl | Used to generate classes |
enum or e | Used to generate enums |
interfaces or i | Used to generate interfaces |
guard or g | Used to generate guards |
module or m | Used to generate modules |
--flat or -f | Used to enable/disable directory creation |
--inline-template or -it | Used to enable/disable inline html templates in components |
--inline-style or -is | Used to enable/disable inline styles in components |
--prefix or -p | Used to disable or change prefix |
--spec or -s | Used to enable/disable .spec files creation |
--skip-import | Used to skip the module import |
--app or -a | Used to specify app name to use |
--module or -m | Used to specify the declaring module |
--view-encapsulation or -ve | Used to specify the view encapsulation strategy in components |
--change-detection or -cd | Used to specify the change detection strategy in components |
--routing or -r | Used to specify if routing module file should be generated |