here is the Angularjs4 Routes Example Strucutre:
const routes: Routes = [
{ path: 'home', component: HomeComponent },
{ path: 'about', component: AboutComponent },
{ path: 'contat', component: ContactComponent }
];
Here to call the Routes data:
<a href="https://www.blogger.com/null" routerlink="/home" routerlinkactive="active">home</a><br />
<a href="https://www.blogger.com/null" routerlink="/about" routerlinkactive="active">about</a><br />
<router-outlet></router-outlet>
const routes: Routes = [
{ path: 'home', component: HomeComponent },
{ path: 'about', component: AboutComponent },
{ path: 'contat', component: ContactComponent }
];
Here to call the Routes data:
<a href="https://www.blogger.com/null" routerlink="/home" routerlinkactive="active">home</a><br />
<a href="https://www.blogger.com/null" routerlink="/about" routerlinkactive="active">about</a><br />
<router-outlet></router-outlet>