Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Vue.js: Understanding its Tools and Ecosystem

You're reading from   Vue.js: Understanding its Tools and Ecosystem Take a crash course in the main concepts and syntax of the Vue.js library

Arrow left icon
Product type Paperback
Published in Nov 2019
Publisher
ISBN-13 9781800206625
Length 194 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Dave Berning Dave Berning
Author Profile Icon Dave Berning
Dave Berning
Backstop Media LLC Backstop Media LLC
Author Profile Icon Backstop Media LLC
Backstop Media LLC
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface
1. Getting Started with Vue.js FREE CHAPTER 2. Scaffolding Projects With Vue CLI 3 3. Navigation with Vue Router 4. State Management with Vuex 5. Debugging With Vue DevTools 6. Server-Side Rendering with Nuxt.js 7. Static Site Generation with VuePress 8. Mobile App Development with NativeScript for Vue.js 9. Greater Control of JavaScript and Type Casting with TypeScript 10. The Future of Vue.js and Adoption Rates

Routing in VuePress

Since VuePress is powered by Vue.js, all of Vue’s libraries work as well. In fact, Vue Router is included and running out-of-the-box so there is no need to add that yourself. Let’s create another page and use Vue Router to link the two together.

First, go ahead and copy the root README.md file. Once copied, create a new folder inside of the root directory. Remember, the directory name will be the name of the route. So for an example, a folder called, about-me will render the localhost:8080/about-me/ route. For this, let’s create a directory called, page-2. However, you can name this anything you like. This chapter, however, will refer to this page as page-2.

Inside of page-2, paste the README.md file. All index files must be named README.md. You are welcome to change as much as you’d like to this to differentiate it from the other page.

You now have two pages. If you visit the route in your browser window (localhost:8080/page-2) you should...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image