Just similar to v-if directive on template, you can also use a tag with v-for directive to render a block of multiple elements.
Let’s take a todo example,
1 2 3 4 5 6 | <ul> <template v-for="todo in todos"> <li>{{ todo.title }}</li> <li class="divider"></li> </template> </ul> |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.