Full-Stack Web Development with Vue.js and Node

(singke) #1
Building the Real Application Chapter 5

We should be able to see something like this when we visit the
URL http://localhost:8080/#/:


That's it. You have successfully created a basic static two-page web application!


Understanding Vue.js components


The vue components are equivalent to the HTML files that you write in an application. You


can write the plain HTML syntax in .vue files. The only thing that needs to be taken care of


is to wrap all the content with .


Vue.js directives


Directives are used with a markup language to perform some functions on the DOM


elements. For example, in HTML markup language, when we write:


<div class='app'></div>
Free download pdf