# 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.