Just starting out with Ionic/Vue having been working with Ionic/Angular for a few years. Trying to get to grips with some best practices early on.
To save importing and registering the following in every page …
IonContent,
IonHeader,
IonPage,
IonTitle,
IonToolbar
…I have created a BasePage component which imports these and which I have registered globally. I can then utilise this base component in any page like this:
<template>
<base-page pageTitle="My Page">
</base-page>
</template>
I’m assuming this is good practice? Would it then make sense to create other base components in the same way e.g BaseModal, BaseList, BaseForm and so on and (presumably) making good use of Vue slots in these base components?
1 post - 1 participant