<template> <h2>Example v-for Directive</h2> <p>Using the v-for directive to loop through the characters in a string.</p> <ul> <li v-for="(x, index) in 'Ice cream'">Item: "{{ x }}", index: {{ index }}</li> </ul> </template>
import { createApp } from 'vue' import App from './App.vue' const app = createApp(App) app.mount('#app')