N
Nuxt4mo ago
mfs98

Place component beside its page to have logic grouped together in page dir.

I am trying to set page specific component beside the page that its used in. I am facing a problem with preventing it to be converted into page.
4 Replies
joe_black_unlucky
what? so you have a component in a component folder and you want it as a page? Why not just add the component to the page's template?
Cue
Cue4mo ago
No, the OP wants to treat some vue files in pages/ dir as components but Nuxt’s default behaviour will treat them as independent routes. For example, pages/foo/components/bar.vue becomes the route /foo/components/bar
joe_black_unlucky
oh i guess he answered it himself with the link
Want results from more Discord servers?
Add your server