Sub‐Generator: directive - BlueOakJS/generator-blueoak GitHub Wiki
This sub-generator will create a new AngularJS directive (and associate it with an Angular module) based on the name provided. e.g:
client/src/app/example/example.module.js
client/src/app/example/example.directive.js
For more information on Angular directives, see the official documentation.
yo blueoak:directive [-m|--module <module name>] name
Notes:
- If the directive name is suffixed with 'directive', the suffix will be removed since .directive.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