mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-17 19:13:34 +08:00
443 B
443 B
ng generate service
Overview
ng generate service [name]
generates a service
Options
--app
Specifies app name or index to use.
--flat
Flag to indicate if a dir is created.
--module
(-m
) Allows you to specify the module where the service should be provided
--spec
Specifies if a spec file is generated.