134
rated 0 times
[
135]
[
1]
/ answers: 1 / hits: 27873
/ 8 Years ago, fri, january 20, 2017, 12:00:00
A beginner of vue.js and I followed this link:
https://www.sitepoint.com/getting-started-with-vue-js/
Almost copy the code into my html.However it just not working.Can someone help me find what is going wrong?
Here are all the codes:
<html>
<body>
<script src=https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.26/vue.min.js>
</script>
<script>
var myModel = {
name: Ashley,
age: 24
};
var myViewModel = new Vue({
el: '#my_view',
data: myModel
});
</script>
<div id=my_view>
{{ name }}
</div>
</body>
</html>
The result is just:{{name}}
More From » vue.js