From 060748b4cf4e364f456b6092f4389d08d33ea046 Mon Sep 17 00:00:00 2001 From: "Manu Mtz.-Almeida" Date: Thu, 13 Oct 2016 23:59:23 +0200 Subject: [PATCH] test(tabs): adds show test references #6412 --- src/components/tabs/test/advanced/app-module.ts | 5 ++++- src/components/tabs/test/advanced/tabs.html | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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 @@ - + - +