Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.

Join them; it only takes a minute:

Sign up
Join the Stack Overflow community to:
  1. Ask programming questions
  2. Answer and help your peers
  3. Get recognized for your expertise

maybe this is a trivial question.

so, when I run my vuejs application on browser with enables throttling download speed (sets to low connection). I got unfinished vue syntax output in browser.

Vue js syntax appear in browser

I know we can trick this out with showing loading image before entire page has loaded, but it's there any best solution to fix this?

share|improve this question
up vote 3 down vote accepted

You can use the v-cloak directive, which will hide the vue instance until the compilation finishes

share|improve this answer
    
in api says : [v-cloak] { display: none; } <div v-cloak> {{ message }} </div> it means, I should add v-cloak attribute in every element that I I wish to hide ? – antoniputra 2 days ago
1  
Just to the main App div should be fine – Jeff 2 days ago
    
@Jeff ah, I've just aware of it. well v-cloak seems a best answer. thanks @Gus !! – antoniputra 2 days ago

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.