I
I
Igor Belyaev2020-12-27 18:54:57
Vue.js
Igor Belyaev, 2020-12-27 18:54:57

How to implement nested Vue routes when using Inertia.js?

When using the standard Vue Router, we could add our own route mapping in the components:

/user/foo/profile                     /user/foo/posts
+------------------+                  +-----------------+
| User             |                  | User            |
| +--------------+ |                  | +-------------+ |
| | Profile      | |  +------------>  | | Posts       | |
| |              | |                  | |             | |
| +--------------+ |                  | +-------------+ |
+------------------+                  +-----------------+


How to achieve a similar result when using Inertia.js?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question