Angular - Generating Components
Using a command prompt, path to your application's directory. Type the following command:
ng generate component [component name]
A subdirectory will be created in the src\app\ folder named after your new component. Within the folder will be four files:
- css
- html
- spec.ts
- ts