Skip to content
A non-working example of vue v2, vue-router and cordova
JavaScript Vue HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cordova
vue
.gitignore
README.md

README.md

vuejs, vue-router and cordova

This is a non-working example of vuejs, with vue-router and cordova. This style of app worked in vue v1 but is no longer working with vue v2.

The app will run with cd vue && npm run dev but will not run from the static files located at cordova/www after building with cd vue && npm run build

Usage

$ cd vue
$ npm install
$ npm run dev
$ ctrl + c
$ npm run build

After building, open cordova/www/index.html with your favorite webbrowser and the router component will not be present.

Note

  1. This worked with vue and vue-router v1
  2. This works without using vue-router
  3. No errors get thrown, the portion of the app that is supposed to be shown with the router simply never shows.
You can’t perform that action at this time.