Complete Vue.js 2 Web Development_ Practical guide to building end-to-end web development solutions with Vue.js 2

(singke) #1
Vue Router Patterns Chapter 20

Each route is added to its own bundle file and subsequently gives us an improved


performance as the initial bundle is much smaller:


An SPA project


Let's create a project that uses a RESTful API and the routing concepts that we've just


learned. Create a new project by running the following in your Terminal:


# Create a new Vue project
$ vue init webpack-simple vue-spa

# Navigate to directory
Free download pdf