routerlink in ionic 5 code example
Example 1: ionic route navigation
// just like angular
<button [routerLink]="['/detail']">click</button>
Example 2: router navigate ionic
RouterModule.forRoot([
{ path: '', component: LoginComponent },
{ path: 'detail', component: DetailComponent }
]);