Skip to content

Commit

Permalink
Initializes example Vue instance with mount() (#2064)
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdcave authored and gauravtiwari committed May 8, 2019
1 parent 209b1bd commit 149874e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/install/examples/vue/hello_vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ import Vue from 'vue'
import App from '../app.vue'

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

console.log(app)
})
Expand Down

0 comments on commit 149874e

Please sign in to comment.