November 2017
Beginner to intermediate
398 pages
8h 42m
English
Without further ado, let's start creating our first Vue app with a very quick setup. Vue is flexible enough to be included in any web page with a simple script tag. Let's create a very simple web page that includes the library, with a simple div element and another script tag:
<html><head> <meta charset="utf-8"> <title>Vue Project Guide setup</title></head><body> <!-- Include the library in the page --> <script src="https://unpkg.com/vue/dist/vue.js"></script> <!-- Some HTML --> <div id="root"> <p>Is this an Hello world?</p> </div> <!-- Some JavaScript --> <script> console.log('Yes! We are using Vue version', Vue.version) </script> </body></html>
In the browser console, we should have something like this:
Yes! We are using ...
Read now
Unlock full access