diff --git a/src/components/tabs/test/advanced/app-module.ts b/src/components/tabs/test/advanced/app-module.ts index 10dbd5f8a5..dc3cece680 100644 --- a/src/components/tabs/test/advanced/app-module.ts +++ b/src/components/tabs/test/advanced/app-module.ts @@ -31,6 +31,7 @@ export class ChatPage { templateUrl: './tabs.html' }) export class TabsPage { + showTab: boolean = false; @ViewChild(Tabs) tabs: Tabs; @@ -42,7 +43,9 @@ export class TabsPage { }); } - onTabChange() { + onTabChange(tab: Tab) { + this.showTab = tab.index !== 1; + // wired up through the template // console.log('onTabChange'); diff --git a/src/components/tabs/test/advanced/tabs.html b/src/components/tabs/test/advanced/tabs.html index 5abb8ea736..dbdbdbf777 100644 --- a/src/components/tabs/test/advanced/tabs.html +++ b/src/components/tabs/test/advanced/tabs.html @@ -1,7 +1,7 @@ - + - +