egoist
8/3/2016 - 1:54 PM

Higher level front-end framework based on Vue and Vuex

Higher level front-end framework based on Vue and Vuex

import EVA from 'eva.js'

const app = new EVA()

app.model({
  counter
})

app.view('/', {
  component: require('./views/Home'),
  children: [
    // path => /home, default router-view
    '': require('./views/HomeDefault'),
    // path => /home/foo
    'foo': require('./views/HomeFoo')
  ]
})

app.start('#app')