Following a Vue tutorial, I ran into a problem. The code is same, but I can't display template using v:for loop.
Here is my code
Vue.component('accordion', {
template: `<p>Hello</p>`
});
new Vue({
el: '#app',
data: {
items: [{
title: 'Title 1',
description: 'Description for tab 1.'
},
{
title: 'Title 2',
description: 'Description for tab 2.'
},
{
title: 'Title 3',
description: 'Description for tab 3.'
},
]
},
});
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vue from Scratch</title>
</head>
<body>
<div id="app">
<accordion v:for="item in items"></accordion>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</body>
</html>
The template should be displayed three times (3x Hello), but I only get one Hello.