Ionic v4 second set of tabs


#1

hey all,

I am trying to add a second set of tabs, here is my app-routing.module:

const routes: Routes = [
  {
    path: '',
    loadChildren: './tabs/tabs.module#TabsPageModule',
    canActivate: [AuthGuard],
  },
  {
    path: 'signup',
    loadChildren: './signup/signup.module#SignupPageModule',
  },
  {
    path: 'signup/flow',
    loadChildren: './signup/flow/tabs/signupTabs.module#SignupTabsPageModule',
  },

And here is my signupTabs.router.module:


const routes: Routes = [
  {
    path: '',
    component: SignupTabsPage,
    children: [
      {
        path: '',
        redirectTo: 'signup/flow/(type:type)',
        pathMatch: 'full',
      },
      {
        path: 'type',
        outlet: 'type',
        component: BusinessTypePage,
      },
      {
        path: 'style',
        outlet: 'style',
        component: BusinessStylePage,
      },
      {
        path: 'details',
        outlet: 'details',
        component: BusinessDetailsPage,
      },
    ],
  },
  {
    path: '',
    redirectTo: 'signup/flow/(type:type)',
    pathMatch: 'full',
  },
];

But I am getting this error:
'Only absolute redirects can have named outlets. redirectTo: ‘signup/flow/(type:type)’
Any help appreciated - I plan to help out with documentation on this.