diff --git a/index.js b/index.js index 70a974c..a947043 100644 --- a/index.js +++ b/index.js @@ -11,6 +11,10 @@ export default function install(Vue, {routes}) { Object.keys(routes).map(path => { routes[path].component.__path = path + // this is required to attach the path to vue-class-components. See #31 + if(routes[path].component.options) { + routes[path].component.options.__path = path; + } }) Vue.mixin({
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: