Vue-router: Auto-add namespace to subroutes

Created on 12 Jul 2016  路  2Comments  路  Source: vuejs/vue-router

One nice thing about vue-router is that it allows subRoutes. As routing gets more complex, one would find itself forced to namespace subroutes manually. What I propose here is that vue-router auto-add namespace to subroutes in order to avoid name collisions for named nested routes.

See https://github.com/vuejs/vue-router/issues/560

feature request

All 2 comments

The problem with auto namespacing subroutes is that when you change the name of a parent route, all your links to that route need to be changed as well. I actually think manually namespacing is better because it doesn't have this problem.

Well, the big picture here is that you should not change the name of the parent route. Anyhow...

Was this page helpful?
0 / 5 - 0 ratings