in Vue.JS by
Q:
Example of a Vue app that uses HTML as a template

▼ Show 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>`
});
Vue JS
Learn More with Madanswer

Related questions

0 votes
asked Oct 9, 2019 in Vue.JS by Indian
0 votes
asked Jan 9, 2020 in Vue.JS by GeorgeBell
...