fix(angular): lint issue

This commit is contained in:
Manu Mtz.-Almeida
2018-12-13 16:43:04 +01:00
parent b6aea08be4
commit a961dca7e8
2 changed files with 12 additions and 7 deletions

View File

@@ -59,13 +59,11 @@ export class IonTabs {
@HostListener('ionTabButtonClick', ['$event.detail'])
onTabButtonClick(detail: TabButtonClickDetail) {
const { tab, selected } = detail;
if (tab) {
const href = `${this.outlet.tabsPrefix}/${tab}`;
const url = selected
? href
: this.outlet.getLastUrl(tab) || href;
const href = `${this.outlet.tabsPrefix}/${tab}`;
const url = selected
? href
: this.outlet.getLastUrl(tab) || href;
this.navCtrl.navigateBack(url, true);
}
this.navCtrl.navigateBack(url, true);
}
}