Skip to content

Commit 6de33cf

Browse files
authored
Merge pull request sdras#24 from dasDaniel/patch-1
vwatcher-options
2 parents 1b6aaea + 5966212 commit 6de33cf

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

snippets/vue-script.json

+15
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,21 @@
3131
],
3232
"description": "vue watcher"
3333
},
34+
"Vue Watchers with Options": {
35+
"prefix": "vwatcher-options",
36+
"body": [
37+
"watch: {",
38+
"\t${1:data}: {",
39+
"\t\timmediate: ${2:true},",
40+
"\t\tdeep: ${3:true},",
41+
"\t\thandler(${4:newValue}, ${5:oldValue}) {",
42+
"\t\t\t${0}",
43+
"\t\t}",
44+
"\t}",
45+
"},"
46+
],
47+
"description": "vue watcher with options"
48+
},
3449
"Vue Props with Default": {
3550
"prefix": "vprops",
3651
"body": [

0 commit comments

Comments
 (0)