12345678910111213141516171819202122232425262728293031 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Title</title>
- <link rel="stylesheet" href="../styles.css" />
- <link rel="stylesheet" href="styles.css" />
- </head>
- <body>
- <nav>
- <h1><span class="index">4</span>Vue event listeners</h1>
- <ul>
- <li><a href="../lesson3">Prev</a></li>
- <li><a href="../lesson5">Next</a></li>
- </ul>
- </nav>
- <div id="root">
- <ul>
- <li v-for="name in names" v-text="name"></li>
- </ul>
- <input v-model="newName" type="text" />
- <button @click="addName">Add name</button>
- {{/* Delete last name */}}
- </div>
- <script src="../lib/vue-2.1.3.js"></script>
- <script src="code.js"></script>
- </body>
- </html>
|