I want to build my first website with Vue.js but have difficulties how to start.
Craft and Vue.js both use {{ }}
as delimiters, but I found out that I can change this for Vue. So to start, I tried the following in my JS file.
Vue.config.debug = true;
Vue.config.delimiters = ['${', '}'];
new Vue({
el: '#content',
data: {
message: 'Hello Vue.js!'
}
});
But the output I get is ${ message }
In the html file I have the following:
<div id="content" role="main">
${ message }
</div>
In the html file, I first load vue.js, then my script. I use Vue.js v2.0.0-rc.6
Any idea how I can make this work?
Uncaught ReferenceError: Vue is not defined
. Any other idea what could be the reason for this not working?