To keep things simple, we are not going to create any HTML page or use any framework. JSFiddle is good enough for us to get the basics right.
Now, here is the main JSFiddle code which will show you the final output.
But now, let’s go through the code in details:
The first thing that we have done is created a new Vue instance and added the “el” property to tell Vuejs that the app scope is limited to a div with id #vue-app.
The “data” property is how we add variables and use them in our app. And “methods” is the object where we can define our functions which will be used throughout the app.
You can see the Youtube video