Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49260

Import Ionic components globally with @ionic/vue (beta) vue 3

$
0
0

The docs suggests the below implementation

<script>
import { IonContent, IonHeader, IonPage, IonTitle, IonToolbar, } from '@ionic/vue';
export default {
  name: 'HomePage',
  components: {
    IonContent,
    IonHeader,
    IonPage,
    IonTitle,
    IonToolbar,
  },
};
</script>

But that will become a little too much down the line…

How do I import these components globally with the new @ionic/vue beta (vue 3)?

I mean , with vue 2 vue.use(Ionic) in main was enough instead of every single components… how do I achieve it with the new beta?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>