[Poi] Build a Vue App with Poi

Poi uses the Vue babel presets by default, so there is no additional install required to get up-and-running. You can even use the .vue file format without having to configure anything.

 

index.js:

import Vue from 'vue'
import App from './App.vue'

new Vue({
  el: "#app",
  render: h =>  h(App) 
})



// App.vue
<template>
   <h1> {{message}}</h1>
</template>
<script>
export default {
  data() {
     return {
         message: 'Hello Poi'
     }
  }
}
</script>   

 

posted @ 2018-01-03 03:14  Zhentiw  阅读(416)  评论(0编辑  收藏  举报