Creating our first Vue.js application
Once Vue.js has been inserted into the HTML page, you must define the HTML elements of the page in which Vue.js will be used.
In general, you want to use Vue.js on the whole HTML page, but it is possible to use it only on certain elements of the page as well. This would allow us, for example, to manage an HTML page with jQuery, except for a particular <div>
element, which would be managed with Vue.js.
To illustrate this, let us create an HTML page with two <div>
elements, only the first of which will be managed by Vue.js:
Creating an HTML page partially managed by Vue.js
<html> <head> <meta charset="utf-8" /> <script src="https://unpkg.com/vue@next"></script> </head> <body> <div id="app">First div</div> <div...