index.html 501 B

12345678910111213141516171819202122
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Title</title>
  6. <link rel="stylesheet" href="styles.css" />
  7. </head>
  8. <body>
  9. <div id="root">
  10. <ul>
  11. <li v-for="name in names" v-text="name"></li>
  12. </ul>
  13. <input v-model="newName" type="text" />
  14. <button @click="addName">Add name</button>
  15. {{/* Delete last name */}}
  16. </div>
  17. <script src="../lib/vue-2.1.3.js"></script>
  18. <script src="code.js"></script>
  19. </body>
  20. </html>