Skip to content

Commit 8ad4a82

Browse files
authored
add skeloten for defining new routes
1 parent c8f0f73 commit 8ad4a82

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

snippets/vue-script-router.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,16 @@
9292
"},"
9393
],
9494
"description": "Vue Router component guards beforeRouteLeave"
95+
},
96+
"Vue Router Route": {
97+
"prefix": "vroute-named",
98+
"body": [
99+
"{",
100+
"\tpath: '${1:pathName}',",
101+
"\tname: '${2:routeName}',",
102+
"\tcomponent: () => import('./${3:pathToComponent}'),",
103+
"},"
104+
],
105+
"description": "Vue Router route with per route code-splitting"
95106
}
96107
}

0 commit comments

Comments
 (0)