How To Create Routing in Angular 5 and 4? Stayed Informed – Angular 5 and Angular 4 Documents Angular 5 and 4 Routing Steps - ü Steps 1 - Create a component ü Steps 2 - Import RouterModule in @NgModule import { RouterModule } from '@angular/router' ; ü Steps 3 - Create the root path and component in the @NgModule imports: [ BrowserModule , RouterModule . forRoot ([{ //Added Router Module root path and component path: 'web-link' , component: UserComponent } ]) ] ü Steps 4 - Add the routerLink in the appComponent.html < a routerLink = 'web-link' > Show Web Link </ a > ü Steps 5 - Add the <router-outlet></router-outlet> in the appComponent.html < router-outlet ></ router-outle...
Angular, React, JavaScript, Java, PHP, SQL, C#, Vue, NodeJs, TypeScript and Interview Questions Answers