2
See below the structure of my small project;
<!DOCTYPE html>
<html>
<head>
<title>My books</title>
<link rel="stylesheet" type="text/css" href="node_modules/bootstrap/dist/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="node_modules/font-awesome/css/font-awesome.css">
</head>
<body>
<div class="container" id="hello">
<div class="row">
<h1>{ { msg } }</h1>
</div>
</div>
<script src="node_modules/vue/dist/vue.js"></script>
<script src="node_modules/vue-resource/dist/vue-resource.js"></script>
<script src="js/app.js"></script>
</body>
</html>
This is my js file with the name app.js
var hello = new vue({
el:'#hello',
data:{
msg: "Hello Vue"
}
});
It was supposed to appear like this;
But it appears so;
I wonder why this is happening?
Forehead with the braces next to each other, no spaces:
<h1>{{ msg }}</h1>
– Sergio
took, worked perfectly, thank you very much.
– wladyband