When user entry home or tab-navigation app must go on the login page.
const appRoutes: Routes = [
{
path: 'tab-navigation',
redirectTo: 'login',
pathMatch: 'full'
},
{
path: 'home',
redirectTo: 'login',
pathMatch: 'full'
},
{
path: '',
redirectTo: 'login',
pathMatch: 'full'
},
{
path: '**',
redirectTo: 'error404',
}
];
This logic work when entry is '' or something like this 'dfd45657d'. Why not work for home and tab-navigation?
loginroute