vuejs
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
2. Getting Started<br />
Let’s start with a quick tour of Vue’s data binding features. We’re going to make a simple application<br />
that will allow us to enter a message and have it displayed on the page in real time. It’s going to<br />
demonstrate the power of Vue’s two-way data binding. In order to create our Vue application, we<br />
need to do a little bit of setting up, which just involves creating an HTML page.<br />
In the process you will get the idea of the amount of time and effort we save using a javascript<br />
Framework like Vue.js instead of a javascript tool (library) like jQuery.<br />
2.1 Hello World<br />
We will create a new file and we will drop some boilerplate code in. You can name it anything you<br />
like, this one is called hello.html.<br />
1 <br />
2 <br />
3 Hello Vue<br />
4 <br />
5 <br />
6 Greetings your Majesty!<br />
7 <br />
8 <br />
This is a simple HTML file with a greeting message.<br />
Now we will carry on and do the same job using Vue.js. First of all we will include Vue.js and create<br />
a new Instance.<br />
1 <br />
2 <br />
3 Hello Vue<br />
4 <br />
5 <br />
6 <br />
7 Greetings your majesty!<br />
8 <br />
9 <br />
4