I am using vue-router, and am looking to match two very distinct paths. Is there some kind of array notation I can use?
You can use an alias in the routes:
routes: [ { path: '/foo', component: Foo, alias: '/bar'} ]
There are some nice examples here:
https://github.com/vuejs/vue-router/blob/dev/examples/route-alias/app.js
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With