in Vue.JS 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 in Vue.JS by sharadyadav1986
0 votes
asked Oct 7, 2019 in Vue.JS by Tate
0 votes
asked Jul 2 in Handlebars.js by Robindeniel
...