Categories

Jan 9 in Vue.JS

Q: Example of a Vue app that uses HTML as a template

1 Answer

Jan 9
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>`
});
Click here to read more about Vue JS
Click here to read more about Insurance

Related questions

Madanswer
Jan 9 in Vue.JS
Jan 9 in Vue.JS
Jan 9 in Vue.JS
...