What is the use of the v-cloak instruction in Vue
This article mainly introduces what is the use of the v-cloak instruction in Vue. It is very detailed and has certain reference value. Interested friends must finish reading it!
V-cloak
This directive is used to remain on the element until the end of the associated instance.
{{message}} new Vue ({el:'#app', data: {message:'hello world'}})
Flicker when the page is loaded (interpolation flicker problem), first display:
{{message}}
It is then compiled to:
Hello world!
You can use the v-cloak instruction to solve the flicker problem of interpolation expressions, and v-cloak is set to display: none in css using the property selector.
The above is all the content of the article "what is the use of v-cloak instructions in Vue". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!