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
Nuxt Enterprise Patterns: Component Management
Discover an alternative to the standard all-in-one components folder with Nuxt 3.
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?
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
oh i guess he answered it himself with the link