0 votes
in VueJS by
Example of a Vue app that uses HTML as a template

1 Answer

0 votes
by
new Vue({
  el: '#app',
  data: {
    fruits: ['Apples', 'Oranges', 'Kiwi']
  },
  template:
      `<div>
         <h1>Fruit Basket</h1>
         <ol>
           <li v-for="fruit in fruits">{{ fruit }}</li>
         </ol>
      </div>`
});

Related questions

0 votes
asked Mar 6, 2022 in VueJS by sharadyadav1986
0 votes
asked Oct 7, 2019 in VueJS by Tate
...