MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / notifyRouter

Method notifyRouter

core/src/components/tabs/tabs.tsx:188–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers 1

selectMethod · 0.95

Calls 1

navChangedMethod · 0.80

Tested by

no test coverage detected