mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-21 22:34:21 +08:00
14 lines
371 B
Markdown
14 lines
371 B
Markdown
<!-- Links in /docs/documentation should NOT have `.md` at the end, because they end up in our wiki at release. -->
|
|
|
|
# ng generate service
|
|
|
|
## Overview
|
|
`ng generate service [name]` generates a service
|
|
|
|
## Options
|
|
`--flat` flag to indicate if a dir is created
|
|
|
|
`--spec` specifies if a spec file is generated
|
|
|
|
`--module` (`-m`) allows specification of the declaring module
|