Based off of the OnsenUI Vue <v-ons-splitter-side>
tutorial: https://onsen.io/v2/api/vue/v-ons-splitter-side.html.
This example will move the page components into their own .vue
files.
-
using-function-property
branch demonstrates using a function property to navigate between pages. -
vue-router
branch demonstrates the OnsenUI wrapper for the Vue-router to navigate between pages. -
vuex
branch demonstrates using VueX to control app state & navigate between pages.
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
If you've never deployed the app to Firebase perform Steps 1 & 2, if you've already deployed the app before go directly to Step 3.
-
link your local machine to Firebase
npm run login
-
initialize Firebase to host the app
npm run init
-
deploy the app to Firebase
npm run deploy
For detailed explanation on how things work, checkout the guide and docs for vue-loader.