How to create a function to go to another flap in IONIC?

1

Is there a function that allows me to go to a certain tab of an application in ionic? Assuming I have this tab organization:

<ion-tabs class="tabs-icon-top tabs-positive">

        <ion-tab title="Home" icon="ion-home" href="#/tab/home">
          <ion-nav-view name="home-tab"></ion-nav-view>
        </ion-tab>

        <ion-tab title="About" icon="ion-ios-information" href="#/tab/about">
          <ion-nav-view name="about-tab"></ion-nav-view>
        </ion-tab>

        <ion-tab title="Contact" icon="ion-ios-world" ui-sref="tabs.contact">
          <ion-nav-view name="contact-tab"></ion-nav-view>
        </ion-tab>
    
asked by anonymous 01.09.2017 / 00:45

1 answer

-1

In your html you use:

(click)="home()" ao invés de href

Within the file .TS

home (){
this.navCtrl.push(HomePage);

}
    
11.11.2017 / 12:42