Hide by default #85
emavitta
started this conversation in
Show and tell
Replies: 2 comments 1 reply
-
I think you are looking for v-cloak https://v3.vuejs.org/api/directives.html#v-cloak |
Beta Was this translation helpful? Give feedback.
1 reply
-
It's working but i had to move the v-cloak attribute to a different tag then the one with also the v-if... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I encountered a little problem which i solved, but i'm open to better suggestion.
When there are elements that have to be hidden by default with a v-if statement, they are visibile until the script load.
To bypass this problem i used on a tag
:style="{display:show}" style="display:none;"
and as a data variable
show:'block',
this way, once the script is loaded it set the display as block but also hide it with the v-if condition.
Better suggestion?
Beta Was this translation helpful? Give feedback.
All reactions