I am trying to find out vue and created the sample below for testing purposes:
import App from '../comp/app.vue'; import Two from '../comp/two.vue'; const routes = [ { path: '/', component: App }, { path: '/two', component: Two } ] const router = new VueRouter({ base: base.pathname, mode: "history", routes // short for routes: routes }) window.app = new Vue({ el: "#container", data: { message: "home", date: new Date(), seen: false, fruits: [ { name: "apple" }, { name: "orange" }, { name: "banana" } ] } })
But before inserting any values, the page will display the mustache syntax for a short time. Almost as if VueJS was not working. After a while, VueJS will start and populate the correct values ββfor the variables.

Why is this happening and how can I fix this behavior?
source share