MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / componentWillLoad

Method componentWillLoad

core/src/components/nav/nav.tsx:118–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

116 @Event({ bubbles: false }) ionNavDidChange!: EventEmitter<void>;
117
118 componentWillLoad() {
119 this.useRouter = document.querySelector('ion-router') !== null && this.el.closest('[no-router]') === null;
120
121 if (this.swipeGesture === undefined) {
122 const mode = getIonMode(this);
123 this.swipeGesture = config.getBoolean('swipeBackEnabled', mode === 'ios');
124 }
125
126 this.ionNavWillLoad.emit();
127 }
128
129 async componentDidLoad() {
130 // We want to set this flag before any watch callbacks are manually called

Callers

nothing calls this directly

Calls 2

getIonModeFunction · 0.90
getBooleanMethod · 0.45

Tested by

no test coverage detected