Skip to content

Commit 32bc45e

Browse files
committed
Add nuxt-layout snippets #7
- nlink - nlink-param
1 parent 707ea01 commit 32bc45e

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

Diff for: package.json

+4
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@
5353
{
5454
"language": "typescript",
5555
"path": "./snippets/vue-router.code-snippets"
56+
},
57+
{
58+
"language": "html",
59+
"path": "./snippets/nuxt-template.code-snippets"
5660
}
5761
]
5862
}

Diff for: snippets/nuxt-template.code-snippets

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"NuxtLink": {
3+
"prefix": "nlink",
4+
"body": ["<NuxtLink to=\"/${1:path}\">${2:linkTitle}</NuxtLink>"],
5+
"description": "Nuxt router link"
6+
},
7+
"NuxtLink with param": {
8+
"prefix": "nlink-param",
9+
"body": [
10+
"<NuxtLink :to=\"`/${1:path}/${${2:param}}`\">${3:linkTitle}</NuxtLink>"
11+
],
12+
"description": "Nuxt router link with param"
13+
},
14+
}

0 commit comments

Comments
 (0)