title: How to pass parameters through Ionic 4 tabs buttons
body: <p>How to pass parameters through Ionic 4 tabs buttons</p>
  
  <pre class="lang-html prettyprint-override"><code>    &lt;ion-tabs&gt;
      &lt;ion-tab-bar slot="top" color="light"&gt;
        &lt;ion-tab-button tab="tab1"&gt;
          &lt;ion-label&gt; Tab 1 &lt;/ion-label&gt;
        &lt;/ion-tab-button&gt;
        &lt;ion-tab-button tab="tab2"&gt;
          &lt;ion-label&gt; Tab 2 &lt;/ion-label&gt;
        &lt;/ion-tab-button&gt;
      &lt;/ion-tab-bar&gt;
    &lt;/ion-tabs&gt;
  </code></pre>
  
  <p>In my tabsmain.module.ts am routing each of these as</p>
  
  <pre class="lang-js prettyprint-override"><code>    const routes: Routes = [
    {
      path: '',
      component: TabsmainPage, children: [
        { path: '', loadChildren: './pages/tab1/tab1.module#Tab1PageModule' },
        { path: 'tab1/:id2', loadChildren: './pages/tab1/tab1.module#Tab1PageModule' },
        { path: 'tab2', loadChildren: './pages/tab2/tab2.module#Tab2PageModule' }},
      ]
    }
  ];
  </code></pre>
  
  <p>I want to pass some ID as a parameter as we do through NavParams
  Please help me, How I can pass parameters through <strong><em>ion-tab-button</em></strong> </p>