Here, 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
ng g component Login
now explore the solution and see generated componets.
i hope it will help to you..
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
Here, 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..