Angular 7 - create component from command line

2 points
Created by:

Command line:

ng generate component our-component-name

Step by step:
* From top level of our angular 7 app
open angular CLI
* and run:

ng generate component our-component-name

$ ng generate component our-component-name
CREATE src/app/our-component-name/our-component-name.component.html (37 bytes)
CREATE src/app/our-component-name/our-component-name.component.spec.ts (700 bytes)
CREATE src/app/our-component-name/our-component-name.component.ts (315 bytes)
CREATE src/app/our-component-name/our-component-name.component.css (0 bytes)
UPDATE src/app/app.module.ts (590 bytes)

After that this component is added to app.module.ts

Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

Angular 7

Native Advertising
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂