I think it's quite logical - if you give us a class that potentially can have multiple instances to try set more than one instance on a page, even in different vue app instances. That can be made only for adstract mode.
This issue was caused by attempt to make custom-element component that have it's own routing (an abstract one) from a ready vuejs app, wich have quite alot of logic.
And any page of an app can have multiple instances of it.
With that feature implemented it could be possible to make really modular pages that don't know what components they have inside, and components itself can be very complex. And it's the behavior that i think people are expecting - if you can have multiple Vue applications on a page, why only one router?
i dont think that api should change, but it can be possible to set some uid to tell vue-router instance wich router-view tag to use with it. Something like
new VueRouter({
mode: 'abstract',
uid: 'first-app'
})
and in template
<router-view data-uid='first-app'></router-view>
It already works, you just have a typo in your jsfiddle: https://jsfiddle.net/vzunncz4/
You were injecting router2 but it has to be named router 馃檪
Most helpful comment
It already works, you just have a typo in your jsfiddle: https://jsfiddle.net/vzunncz4/
You were injecting
router2but it has to be namedrouter馃檪