# Ionic 4 - how to pass param between tabs

**URL:** <https://forum.ionicframework.com/t/ionic-4-how-to-pass-param-between-tabs/151830>\
**Category:** ionic-v3\
**Created:** [January 1, 2019, 6:34pm UTC](https://forum.ionicframework.com/t/ionic-4-how-to-pass-param-between-tabs/151830 "2019-01-01T18:34:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![haythoo](https://avatars.discourse-cdn.com/v4/letter/h/df788c/32.png) [@haythoo](https://forum.ionicframework.com/u/haythoo)\
**Post date:** [January 1, 2019, 6:34pm UTC](https://forum.ionicframework.com/t/ionic-4-how-to-pass-param-between-tabs/151830/1 "2019-01-01T18:34:37Z")

</div>

Hello,

I’m using ionic rc1, any idea about passing param between tabs?

for example, I need to view shop profile, the shop id is 1, the shop profile have 4 tabs, profile, products, offers and branches. I need to pass the shop id between tabs so I can query the shop in the database.

Thanks

---

<div class="post-metadata">

**Author:** ![haythoo](https://avatars.discourse-cdn.com/v4/letter/h/df788c/32.png) [@haythoo](https://forum.ionicframework.com/u/haythoo)\
**Post date:** [January 1, 2019, 6:46pm UTC](https://forum.ionicframework.com/t/ionic-4-how-to-pass-param-between-tabs/151830/2 "2019-01-01T18:46:35Z")

</div>

so, in app.routing i have:

```auto
{ path: 'merchant-home/:id', loadChildren: './merchant-home/merchant-home.module#MerchantHomePageModule' },

```

in merchant module i have routing setup:

```auto
const routes: Routes = [
  {
    path: '',
    component: MerchantHomePage,
    children: [
      {
        path: 'merchant-all',
        children: [
          {
            path: '',
            loadChildren: '../merchant-all/merchant-all.module#MerchantAllPageModule'
          }
        ]
      },
      {
        path: 'merchant-discount',
        children: [
          {
            path: '',
            loadChildren: '../merchant-discount/merchant-discount.module#MerchantDiscountPageModule'
          }
        ]
      },
      {
        path: 'merchant-oneday',
        children: [
          {
            path: '',
            loadChildren: '../merchant-oneday/merchant-oneday.module#MerchantOnedayPageModule'
          }
        ]
      },
      {
        path: '',
        redirectTo: '/merchant-home/merchant-all',
        pathMatch: 'full'
      }
    ]
  }
];

```

everything is working, so when i visit this link manually  
[http://localhost:8100/merchant-home/1/merchant-all](http://localhost:8100/merchant-home/1/merchant-all)

but the router take me dynamically to:  
[http://localhost:8100/merchant-home/merchant-all](http://localhost:8100/merchant-home/merchant-all)

and I can receive the id on the tabs page, but not on a single tab.
