how to create component in angular 8
how to create component in angular 8
591
01-Dec-2020
Updated on 01-Dec-2020
Anonymous User
01-Dec-2020Here, I will show you how to generate a new component in Angular 8 App using CLI command. We will create new component using ng generate command in Angular 8. So you will understand to Angular 8 ng generate new component command.
So, basically, when you are creating a new component using Angular CLI command then they will create new folder with four files and also they will register in moduler.ts file.
In this example, we will run command and let's see which files created and what you have to write on that file code. You can easily understand to generate new component in Angular 8 application.
Go to Terminal: Click new Terminal:
in terminal window write the following code
now explore the solution and see generated componets.
i hope it will help to you..