How to start new Vue Ionic project
npm i -g @vue/cli
vue create vue-ionic-example
cd vue-ionic-example
vue add router
npm i -E @ionic/core @ionic/vue
edit src/main.js
file:
import '@ionic/core/css/ionic.bundle.css';
// import Ionic from '@ionic/vue';
import { defineCustomElements as Ionic } from "@ionic/core/loader"; // add a direct link to @ionic/core
Vue.use(Ionic);
Vue.config.ignoredElements = [/^ion-/];
finally use ionic in your root Aoo.vue
component:
<template>
<div class="ion-page">
<ion-header>
<ion-toolbar>
<ion-title>My App</ion-title>
</ion-toolbar>
</ion-header>
<ion-content class="ion-padding">
<div>
<router-link to="/">Home</router-link> |
<router-link to="/about">About</router-link>
</div>
<router-view/>
</ion-content>
</div>
</template>
<script>
export default {
name: 'app',
};
</script>
npm start
npm run build
npm t
- https://github.com/daggerok/typescript-ionic-nuxt-app
- https://github.com/daggerok/webflux-kotlin-nuxt-app
- https://github.com/daggerok/spring-boot-nuxt-spa
- https://github.com/daggerok/ionic-nuxt-app
- https://github.com/daggerok/nuxt-examples
- https://github.com/daggerok/vue-examples