I use Nuxtjs and ionic specifically Nuxt Ionic plugin if you don’t know this framework let’s say I use VueJs with Ionic…
I have a question, now if I don’t use any of the ionic components what happens to the application? Because I tried not adding any element and exported the application and installed it on my Android device initially to see if there is a problem.
There may be minor problems but I want to know what happens…
Because Nuxt Ionic says:
- Avoid using
<NuxtPage>
,<NuxtLayout>
or<NuxtLink>
. These are currently not integrated with this module.Instead, Ionic expects
<ion-router-outlet>
to show the route component, anduseIonRouter()
or therouter-link
property on anyion-
component to change page.app.vue
<template> <ion-app> <ion-router-outlet /> </ion-app> </template>
- The root element of every page must always be
<ion-page>
.This is required by Ionic to set up page transitions and stack navigation. Each view that is navigated to using the router must include an component.
- When navigating from a tabbed route to a non-tabbed route,
route.params
from the auto-imported >useRoute()` will always be an empty object.A current workaround is to
import { useRoute } from 'vue-router';
.