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

If we then take a look in our browser we can see that there is only one user listed with the


information underneath coming from the user detail linked to that one user:


Child routes


We can also access posts from our API, and as a result, we can display both the posts'
information alongside our user information. Let's create a new component named


UserPosts.vue:


<template>
Free download pdf