title: Error: Cannot match any routes. URL Segment: 'tabs'
body: <p>I'm trying to create a tabs page layout for my ionic 4 app. After my configs and setup, I get the error Error: Cannot match any routes. URL Segment: 'tabs'</p>
  
  <p>First of all, when I created a default starter using the tabs template, it doesn't work. The tab bar shows but it doesn't display the tab content. After days of research and testings, no luck yet. See what I currently have;</p>
  
  <p>My Ionic Info</p>
  
  <pre><code>Ionic:
     ionic (Ionic CLI)             : 4.6.0 (C:\Users\Ken\AppData\Roaming\npm\node_modules\ionic)
     Ionic Framework               : @ionic/angular 4.0.0-beta.17
     @angular-devkit/build-angular : 0.10.7
     @angular-devkit/schematics    : 7.0.7
     @angular/cli                  : 7.0.7
     @ionic/angular-toolkit        : 1.2.0
  
  System:
  
     NodeJS : v10.13.0 (C:\Program Files\nodejs\node.exe)
     npm    : 6.4.1
     OS     : Windows 10
  </code></pre>
  
  <p>app-routing.module.ts</p>
  
  <pre><code>import { NgModule } from '@angular/core';
  import { Routes, RouterModule } from '@angular/router';
  
  const routes: Routes = [
    {
      path: '',
      redirectTo: 'home',
      pathMatch: 'full'
    },
    {
      path: 'home',
      loadChildren: './home/home.module#HomePageModule'
    },
    { path: 'tabs', loadChildren: './tabs/tabs.module#TabsPageModule' }
  ];
  
  @NgModule({
    imports: [RouterModule.forRoot(routes)],
    exports: [RouterModule]
  })
  export class AppRoutingModule {}
  </code></pre>
  
  <p>tabs.router.module.ts</p>
  
  <pre><code>import { NgModule } from '@angular/core';
  import { RouterModule, Routes } from '@angular/router';
  
  import { TabsPage } from './tabs.page';
  
  
  const routes: Routes = [
    {
        path: 'tabs',
        component: TabsPage,
        children: [
            {
                path: 'tab1',
                outlet: 'tab1',
                loadChildren: '../tab1/tab1.module#Tab1PageModule'
            },
            {
                path: 'tab2',
                outlet: 'tab3',
                loadChildren: '../tab2/tab2.module#Tab2PageModule'
            },
            {
                path: 'tab3',
                outlet: 'tab3',
                loadChildren: '../tab3/tab3.module#Tab3PageModule'
            }
        ]
    },
    {
        path: '',
        redirectTo: '/tabs/(one:one)'
    }
  ];
  
  
  @NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
  })
  export class TabsPageRoutingModule {}
  </code></pre>
  
  <p>tabs.page.html</p>
  
  <pre><code>&lt;ion-tabs&gt;
  
    &lt;!-- Tabs --&gt;
    &lt;ion-tab tab="tab1"&gt;
      &lt;ion-router-outlet name="tab1"&gt;&lt;/ion-router-outlet&gt;
    &lt;/ion-tab&gt;
  
    &lt;ion-tab tab="tab2"&gt;
      &lt;ion-router-outlet name="tab2"&gt;&lt;/ion-router-outlet&gt;
    &lt;/ion-tab&gt;
  
    &lt;ion-tab tab="tab3"&gt;
      &lt;ion-router-outlet name="tab3"&gt;&lt;/ion-router-outlet&gt;
    &lt;/ion-tab&gt;
  
    &lt;!-- Tab Buttons --&gt;
    &lt;ion-tab-bar slot="bottom"&gt;
  
      &lt;ion-tab-button tab="tab1" href="/tabs/(tab1:tab1)"&gt;
        &lt;ion-icon name="navigate"&gt;&lt;/ion-icon&gt;
        &lt;ion-label&gt;tab1&lt;/ion-label&gt;
      &lt;/ion-tab-button&gt;
  
      &lt;ion-tab-button tab="tab2" href="/tabs/(tab2:tab2)"&gt;
        &lt;ion-icon name="person"&gt;&lt;/ion-icon&gt;
        &lt;ion-label&gt;tab2&lt;/ion-label&gt;
      &lt;/ion-tab-button&gt;
  
      &lt;ion-tab-button tab="tab3" href="/tabs/(tab3:tab3)"&gt;
        &lt;ion-icon name="bookmarks"&gt;&lt;/ion-icon&gt;
        &lt;ion-label&gt;tab3&lt;/ion-label&gt;
      &lt;/ion-tab-button&gt;
  
    &lt;/ion-tab-bar&gt;
  
  &lt;/ion-tabs&gt;
  </code></pre>
  
  <p>I expected this to load the contents of tab1 by default when I navigate to /tabs and then clicking on the tab2 icon should likewise show the contents on tab2page etc.. but I get the error above when I do ionic serve and then add /tabs to the url. Any help here would be greatly appreciated. Thanks in anticipation.</p>