What is better in vue.js 2, use v-if or v-show?

I’m working in a project with vue 2. I need to know in which case the performance is better: Use v-if or v-show?.
I have a long list and each item’s list has a form hidden that I need show and hide to click a button that has each item list.
What is better a toggle class of v-show or add and remove the form with v-if?

78 thoughts on “What is better in vue.js 2, use v-if or v-show?”

  1. Excellent items from you, man. I have keep in mind your stuff prior
    to and you’re just too fantastic. I actually like what you have obtained here, certainly like what you are
    stating and the way in which by which you are saying it.
    You’re making it entertaining and you continue to take care of to keep it smart.
    I can’t wait to read far more from you. This is really a great website. http://cleckleyfloors.com/

    Reply
  2. Definitely imagine that which you stated. Your favorite reason appeared to be on the internet the easiest thing to bear in mind of. I say to you, I definitely get annoyed even as people consider concerns that they plainly do not realize about. You managed to hit the nail upon the top as well as defined out the whole thing without having side effect , folks could take a signal. Will probably be back to get more. Thanks

    Reply

Leave a Comment