Content-Length: 257855 | pFad | https://github.com/nativescript-vue/nativescript-vue-navigator/commit/5561aba

71 fix(vue-class-component): path attachment to route components (#32) · nativescript-vue/nativescript-vue-navigator@5561aba · GitHub
Skip to content

Commit 5561aba

Browse files
authored
fix(vue-class-component): path attachment to route components (#32)
closes #31
1 parent b19adc2 commit 5561aba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ export default function install(Vue, {routes}) {
1111

1212
Object.keys(routes).map(path => {
1313
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+
}
1418
})
1519

1620
Vue.mixin({

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/nativescript-vue/nativescript-vue-navigator/commit/5561aba

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy