Sub‐Generator: directive - BlueOakJS/generator-blueoak GitHub Wiki

Description

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.

Usage

yo blueoak:directive [-m|--module <module name>] name

Notes:

  1. If the directive name is suffixed with 'directive', the suffix will be removed since .directive.js is automatically appended to the filename.
  2. If -m or --module is 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 under client/src/app, otherwise it will be taken from <name>.

Prompts

  • none
⚠️ **GitHub.com Fallback** ⚠️