()
| 186 | } |
| 187 | |
| 188 | private notifyRouter() { |
| 189 | if (this.useRouter) { |
| 190 | const router = document.querySelector('ion-router'); |
| 191 | if (router) { |
| 192 | return router.navChanged('forward'); |
| 193 | } |
| 194 | } |
| 195 | return Promise.resolve(false); |
| 196 | } |
| 197 | |
| 198 | private shouldSwitch(selectedTab: HTMLIonTabElement | undefined): selectedTab is HTMLIonTabElement { |
| 199 | const leavingTab = this.selectedTab; |