Skip to content

Commit

Permalink
Fixes Vue root instance initialization (#1187)
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdcave authored and gauravtiwari committed Jan 21, 2018
1 parent 8429874 commit 7923909
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/install/examples/vue/hello_vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ import Vue from 'vue'
import App from '../app.vue'

document.addEventListener('DOMContentLoaded', () => {
document.body.appendChild(document.createElement('hello'))
const el = document.body.appendChild(document.createElement('hello'))
const app = new Vue({
el,
render: h => h(App)
}).$mount('hello')
})

console.log(app)
})
Expand Down

0 comments on commit 7923909

Please sign in to comment.