0👍
You must put your script tag outside of the #app div
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<link rel="stylesheet" src="http://localhost:8000/css/app.css">
<script src="http://localhost:8000/js/app.js">
</head>
<body>
<div id="app">
{{message}}
</div>
<script>
const app = new Vue({
el: "#app",
data() {
return {
message: "haha"
};
}
});
</script>
</body>
</html>
- [Vuejs]-Error when running "npm install -g @vue/cli", reinstall attempted many times
- [Vuejs]-Get Timestamp from Firestore databse
Source:stackexchange.com