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

Description

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.

Usage

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

Notes:

  1. If the decorator name is suffixed with 'decorator', the suffix will be removed since .decorator.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** ⚠️