Skip to content

Hot to get current content on [...slug].vue ? #1542

Answered by nobkd
JenuelDev asked this question in Q&A
Discussion options

You must be logged in to vote

I think you're looking for useContent()

You can see this for usage: https://github.com/nuxt/content/blob/main/src/runtime/pages/document-driven.vue

You can also look in the api docs

Oh. Just seen this method only works in document driven mode

When you're not using doc-driven mode, there should be another way

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@JenuelDev
Comment options

@nobkd
Comment options

Answer selected by JenuelDev
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants