# How Active one Tab by defualt

**URL:** <https://forum.ionicframework.com/t/how-active-one-tab-by-defualt/131333>\
**Category:** ionic-v3\
**Created:** [May 25, 2018, 8:56am UTC](https://forum.ionicframework.com/t/how-active-one-tab-by-defualt/131333 "2018-05-25T08:56:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ebeliejinfren](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ebeliejinfren/32/123635_2.png) [@ebeliejinfren](https://forum.ionicframework.com/u/ebeliejinfren)\
**Post date:** [May 25, 2018, 8:56am UTC](https://forum.ionicframework.com/t/how-active-one-tab-by-defualt/131333/1 "2018-05-25T08:56:47Z")

</div>

Hi  
i use tab for showing search result but i have a problem, tabs by default not actived and tan content not show, user must choose one of tab to tab content show  
how i active one tab by default that user don’t need to choose tab for showing content in first

Thanks.

---

<div class="post-metadata">

**Author:** ![robinyo](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/robinyo/32/115964_2.png) [@robinyo](https://forum.ionicframework.com/u/robinyo)\
**Post date:** [May 25, 2018, 11:28pm UTC](https://forum.ionicframework.com/t/how-active-one-tab-by-defualt/131333/2 "2018-05-25T23:28:33Z")

</div>

You can specify a default tab in your template, for example -\> selectedIndex=“2”:

```auto
<ion-tabs #tabs selectedIndex="2" (ionChange)="onIonChanged($event)">
  <ion-tab [root]="tab0Root" tabUrlPath="activity-tab" tabIcon="fa-fal-list"></ion-tab>
  <ion-tab [root]="tab1Root" tabUrlPath="location-tab" tabIcon="fa-fal-map-marker"></ion-tab>
  <ion-tab [root]="tab2Root" tabUrlPath="search-tab" tabIcon="fa-fal-street-view"></ion-tab>
  <ion-tab [root]="tab3Root" tabUrlPath="person-tab" tabIcon="fa-fal-user"></ion-tab>
  <ion-tab [root]="tab4Root" tabUrlPath="notifications-tab" tabIcon="fa-fal-bell"></ion-tab>
</ion-tabs>

```

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:34pm UTC](https://forum.ionicframework.com/t/how-active-one-tab-by-defualt/131333/3 "2021-07-19T21:34:48Z")

</div>

Closed on July 19, 2021, 9:34pm UTC


