File tree 2 files changed +19
-0
lines changed
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ <h2>Tests</h2>
22
22
< li > < a href ="/tests/html.html "> v-html</ a > </ li >
23
23
< li > < a href ="/tests/text.html "> v-text</ a > </ li >
24
24
< li > < a href ="/tests/pre.html "> v-pre</ a > </ li >
25
+ < li > < a href ="/tests/cloak.html "> v-cloak</ a > </ li >
25
26
< li > < a href ="/tests/reactive.html "> reactive</ a > </ li >
26
27
< li > < a href ="/tests/multi-mount.html "> Multi mount</ a > </ li >
27
28
< li > < a href ="/tests/custom-delimiters.html "> Custom delimiters</ a > </ li >
Original file line number Diff line number Diff line change
1
+ < script type ="module ">
2
+ import { createApp } from '../src'
3
+ createApp ( {
4
+ msg : 'content' ,
5
+ hide : false
6
+ } ) . mount ( )
7
+ </ script >
8
+
9
+ < div v-scope v-cloak >
10
+ < div v-cloak v-if ="!hide "> {{ msg }}</ div >
11
+ < button @click ="hide = !hide "> toggle</ button >
12
+ </ div >
13
+
14
+ < style >
15
+ [v-cloak ] {
16
+ display : none;
17
+ }
18
+ </ style >
You can’t perform that action at this time.
0 commit comments