Improve docs for v-for with v-if
See original GitHub issueThere seems to be a new vue warning when using v-for
and v-if
together on the same element.
Alas, it seems that the docs don’t mention this warning and instead give a usage example of what is deemed by the warning as a “bad pattern” see this page for v-for with v-if.
It would be a good idea to point this out in the docs as well as give the warning and show an example of alternatives.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
v-for and v-if not working together in vue.js - Stack Overflow
From Vue docs: ... I renamed your info-array to infos to improve readability of my suggestion because of the usage of info in...
Read more >How To Iterate Over Items in Vue.js With V-for | DigitalOcean
We can use a range in the v-for directive to iterate a specified number of times. Let's replace the contents of our <div>...
Read more >How to Add Conditional Statements to v-for Loops in Vue.js
First lets look at the Vue instance we create at the bottom of the document. Its a normal Vue instance and you can...
Read more >Rendering a list of Vue components - Learn web development
First we need to get an array of to-do items. To do that, we'll add a data property to the App.vue component object,...
Read more >Improve config file docs · Issue #2543 · vuejs/vetur - GitHub
I have searched through existing issues Feature Request We have three config file. vetur.config.js tsconfig.json/jsconfig.json package.json We need to ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
ahh got it @chrisvfritz , cheers, I’m still learning 😃
@chrisvfritz Alas, it seems that I can not reproduce the error. I think this may be coming from an external package but I can’t seem to find the source of the
[Vue Warn]
message.For now I’m closing this issue.
Thanks for your time and effort! I will reopen this issue once I find the source.