# 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