<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>An Awesome Vuejs Course</title>
</head>
<body>
<div id="app">
<h1>My First Aesome Vue Project!</h1>
<input type="text" v-model="name">
<p>{{name}}</p>
<br>
<span style="color:red">The value of the p tag above changes according to what you write in input</span>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</body>
</html>
CSS
body {
text-align: center;
}
JavaScript
let myVue = new Vue({
el: '#app',
//
data: {
name: 'Mayank Chaudhari'
}
});
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.