generate

Generates the specified schematic.

Overview

ng generate <name> [options]or ng g <name> [options] generates the specified schematic.

Available Schematics

  • component

  • directive

  • enum

  • guard

  • interface

  • module

  • pipe

  • service

  • library

  • universal

Options

--dry-run (alias: -d) Run through without making any changes.force

--force (alias: -f) Forces overwriting of files.

Last updated