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

Description

This sub-generator will create a new AngularJS view (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.html

For more information on angular views, see the official documentation.

Usage

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

Notes:

  1. If the view name is suffixed with 'view', the suffix will be removed since .view.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 <state name>.

Prompts

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