- In the JavaScript section, write:
new Vue({el:'#app'})
- In the HTML quadrant, we create the <div>:
<div id="app"> {{'Hello ' + 'world'}} </div>
- Click the Run button in the upper-left corner; we see the page greeting us with Hello world:

new Vue({el:'#app'})
<div id="app"> {{'Hello ' + 'world'}} </div>
Get Vue.js 2 Cookbook now with O’Reilly online learning.
O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.