M
M
mrSeller2019-04-10 11:05:09
Vue.js
mrSeller, 2019-04-10 11:05:09

How to send one page component to different routes in NuxtJS?

There are several root routes (/:alias) that have exactly the same pattern, but they work like a category filter.
In the "normal" VueJS, I would either create each of these routes and send one component to them, or I would register /:aliasand set the template I need on it with the very last route, and inside I already wrote the logic that if the alias does not exist, then I send it to 404 But how to do this in NuxtJS
, where the router is created from files and folders?
Do not duplicate multiple files

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dima Pautov, 2019-04-10
@mrSeller

And we don't read the doc

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question