routerdirection root ionic 4 code example
Example 1: router navigate ionic
Login
Go to detail
Example 2: router navigate ionic
RouterModule.forRoot([
{ path: '', component: LoginComponent },
{ path: 'detail', component: DetailComponent }
]);