Things we learned so far
Today we will understand how you can create component using Angular
CLI and how you can define routing to each component.
You can run below command to generate the component using Angular CLI
CD <<folder where you want to have the component>>
Run ng g c <<component name>>
![]() |
ng g c <<component name>> |
Angular
CLI will create for files and also update the app.module.ts file by adding new
entry to the import section.
Next we will create the component for home page.