Answer the question
In order to leave comments, you need to log in
Is it possible using Vue to not display curly braces (Mustache syntax) on page load/initialization?
// Вид HTML-элемента при загрузке
_______________________
| |
| {{ объект.параметр }} |
|_______________________|
// Хотелось бы вот так
_______________________
| |
| |
|_______________________|
v-model
does not work for all elements, for example, it does not work for <div>
. What are the options without using server-side rendering and crutches like элемент.innerHTML = this.параметр
?
Answer the question
In order to leave comments, you need to log in
Use this v-cloak directive for your application block. vue will remove it after initialization, which means that you can write css that will hide the block with this attribute.
div[v-cloak] {
display: none;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question