1๐
You should move the template to the vue instance.
var button = new Vue({
el: '#vb',
methods: {
next1: function() {
alert("pressed!")
}
},
template: `
<a class="button is-rounded is-medium" v-on:click="next1">Lets get started.</a>
`
})
And the element you are mounting to should be simply:
<div id="#vb"></div>
๐คT. Short
- [Vuejs]-Can Vue model data property be equal to value that is returned by another Vue data property object?
- [Vuejs]-Vue.js and laravel problem with delete method
0๐
Okay, this is a little weird but I managed to get it working.
<meta http-equiv="Content-Security-Policy" content="script-src 'self';" />
was stopping it from working. Removing that line makes it work perfectly. Thanks for your suggestions though ๐
๐คSean
- [Vuejs]-Vue.js how to add index to modal window
- [Vuejs]-I save image in storage/app/public why when I run website on server image not show
Source:stackexchange.com