For some reason this code is sending me the Uncaught ReferenceError: Vue is not defined error.
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>VueJS Net Ninja</title>
<link rel="stylesheet" href="styles.css">
<script type="text/javascript"
srs="http://ift.tt/2sqIzMv">
</script>
</head>
<body>
<div id="app">
</div>
<script type="text/javascript" src="app.js"></script>
</body>
</html>
In the html, at the script i tried also https://unpkg.com/vue and nothing.
Here is the js:
//var Vue = require('vue')
//import Vue from 'vue'
var app = new Vue({
el:"#app",
data:{
name:'Walther'
}
});
here i tried with the require or import and nothing.
Aucun commentaire:
Enregistrer un commentaire