scrimba
Preview
Fetching Data with Dynamic Routes
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Fetching Data with Dynamic Routes
AboutCommentsNotes
Fetching Data with Dynamic Routes
Expand for more info
pages
PostShowPage.vue
run
preview
console
<template>
<div>
<router-link to="/posts">Back</router-link>
<div>
Post Data
</div>
</div>
</template>

<script>
module.exports = {
data: function () {
return {
post: null
}
}
}
</script>
Console
"Download the Vue Devtools extension for a better development experience: https://github.com/vuejs/vue-devtools"
,
"You are running Vue in development mode. Make sure to turn on production mode when deploying for production. See more tips at https://vuejs.org/guide/deployment.html"
,
/index.html#/posts
-5:32