Sub‐Generator: decorator - BlueOakJS/generator-blueoak GitHub Wiki
This sub-generator creates a new Angular decorator and associated module for your BlueOak project based on the name your provide. e.g:
client/src/app/example/example.module.js
client/src/app/example/example.decorator.js
For more information on Angular decorators, see the official documentation.
yo blueoak:decorator [-m|--module <module name>] name
Notes:
- If the decorator name is suffixed with 'decorator', the suffix will be removed since .decorator.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