mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(angular): lint issue
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user