Skip to content

Commit 329e23b

Browse files
author
Corentin.Andre
committed
class binding as an object and array
1 parent e542318 commit 329e23b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

snippets/snippets.cson

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@
8888
'v-bind':
8989
'prefix': 'v-bind'
9090
'body': ':${1:attribute}=\"${2}\"'
91+
'v-bind:class as an object':
92+
'prefix': 'vClassObj'
93+
'body': ':class=\"{${1:className}: ${2:property}}\"'
94+
'v-bind:class as an array':
95+
'prefix': 'vClassArr'
96+
'body': ':class=\"[${1:property}]\"'
9197

9298
'.source.js':
9399
'Vue computed':

0 commit comments

Comments
 (0)