1<ion-header>
2 <ion-toolbar>
3 <ion-title>Login</ion-title>
4 </ion-toolbar>
5</ion-header>
6
7<ion-content class="ion-padding">
8 <ion-button [routerLink]="['/detail']">Go to detail</ion-button>
9</ion-content>
1RouterModule.forRoot([
2 { path: '', component: LoginComponent },
3 { path: 'detail', component: DetailComponent }
4]);