Sub‐Generator: service - BlueOakJS/generator-blueoak GitHub Wiki
This sub-generator will create a new AngularJS service (and associate it with an Angular module) based on the name you provide as a command line argument. e.g:
client/src/app/example/example.module.js
client/src/app/example/example.service.js
For more information on angular services, see the official documentation.
yo blueoak:service [-m|--module <module name>] name
Notes:
- If the controller name is suffixed with 'Service', the suffix will be removed since .service.js is automatically appended to the filename.
- If
-mor--moduleis specified, the given argument is used as the module name. Otherwise, the module name will be taken from the current working directory if it's underclient/src/app, otherwise it will be taken from<name>.
- none