We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b19adc2 commit 5561abaCopy full SHA for 5561aba
index.js
@@ -11,6 +11,10 @@ export default function install(Vue, {routes}) {
11
12
Object.keys(routes).map(path => {
13
routes[path].component.__path = path
14
+ // this is required to attach the path to vue-class-components. See #31
15
+ if(routes[path].component.options) {
16
+ routes[path].component.options.__path = path;
17
+ }
18
})
19
20
Vue.mixin({
0 commit comments