Angular 5/4 Routers, Navigation (RouterLink and RouterOutlet) Menus, Component and Services Examples
In this article we’ve shown “ How to navigate between the different routes in an Angular application? ” using the Routers and RouterLink directives. Also explain “how to CREATE and use the Angular services ?” ü Stayed Informed – Angular 5 and Angular 4 documentation and example The Angular router is very easy to use, and below I’ll share some of the basics - <!-- App Router Link --> < a routerLink = "/app-user" routerLinkActive = "active" > Users </ a > < a routerLink = "/app-bill" routerLinkActive = "active" > Bills </ a > <!-- App Router Outlet --> < router-outlet ></ router-outlet > And RouterModule . forRoot ([ { path: 'app-user' , component:UserComponent }, ...