Languages
[Edit]
EN

Angular 7 - create component from command line

2 points
Created by:
Kate_C
21490

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

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.

ÔŁĄ´ŞĆ­čĺ╗ ­čÖé

Join