Skip to content

Latest commit

 

History

History
27 lines (15 loc) · 838 Bytes

component.md

File metadata and controls

27 lines (15 loc) · 838 Bytes

ng generate component

Overview

ng generate component [name] generates a component

Options

--flat flag to indicate if a dir is created

--inline-template (-it) specifies if the template will be in the ts file

--inline-style (-is) specifies if the style will be in the ts file

--prefix specifies whether to use the prefix

--spec specifies if a spec file is generated

--view-encapsulation (-ve) specifies the view encapsulation strategy

--change-detection (-cd) specifies the change detection strategy

--skip-import allows for skipping the module import

--module (-m) allows specification of the declaring module

--export specifies if declaring module exports the component