<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hello Vue</title>
<script src="vue.js" type="text/javascript" charset="UTF-8"></script>
</head>
<body>
<div id="demo">
</div>
<script type="text/javascript">
var demo = new Vue({
el: '#demo',
data: {
message: 'Hello Vue!!!'
}
});
</script>
</body>
</html>
I am beginner of Vue js and not familiar with it. I am not clear whether anything I missed in order to have the variable shown on the template as the template still only shows instead of the value Hello Vue!!!
so could anyone tell me where is the problem?
Aucun commentaire:
Enregistrer un commentaire