Angular component and routing
In my previous tutorial we learnt basics about component .In this tutorial we are going to create first component and will see how it can be added in routing and modules component. To create new component in our project : open vs code and in terminal type below command : ng g c “your component path/component name” . I am going to create component called employee which will used in our further tutorial. so my command will be ng g c employee and hit enter. inside the app folder - employee folder is created and employee folder contains four files as below , same time cli adds reference of the new component in app.module.ts . created component app.module.ts open app-routing.module.ts type below code: const routes: Routes = [ { path: ”, component: EmployeeComponent, }] ; path:...