Skip to content

1 x generate module

Hans Larsen edited this page May 3, 2018 · 1 revision

ng generate module

Overview

ng generate module [name] generates an NgModule

Options

app

--app (aliases: -a) default value: 1st app

Specifies app name to use.

flat

--flat

Flag to indicate if a dir is created.

module

--module (aliases: -m)

Specifies where the module should be imported.

spec

--spec

Specifies if a spec file is generated.

routing

--routing

Specifies if a routing module file should be generated.

Clone this wiki locally
You can’t perform that action at this time.