Good point. There is no platform.ready() for VueJs like in Angular … see Platform | Ionic Documentation
The closest thing like platform.ready()
is in Vue’s main.ts
, like
router.isReady().then(() => {
app.mount(‘#app’);
});
After app.mount()
the lifecyle hooks of Vue fires up, like mounted()
or onMounted()
(for Vues composition api, it’s the same, like mounted
…). And after Vue’s lifecycle hooks the one’s of Ionic appears then, like ionViewDidEnter()
… It seems, like ionViewDidEnter()
is the youngest/last hook that fires, if the app is loaded and page is mounted/build/ready for nasty things …
Here’s a diagram for Vue’s lifecycle hooks: Lifecycle Hooks | Vue.js
And here are the one’s of Ionic with VueJs and the composition api usage: Vue Lifecycle | Ionic Documentation