Cristiano Magro
2024-12-26 8c672a568ad096f28d4c3a2ba95b01ecc30cc3ce
commit | author | age
38b8f3 1 <!DOCTYPE html>
CM 2 <html lang="en">
3   <head>
4     <meta charset="UTF-8" />
5     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6     <title>Vue Basics</title>
7     <link
8       href="https://fonts.googleapis.com/css2?family=Jost:wght@400;700&display=swap"
9       rel="stylesheet"
10     />
11     <link rel="stylesheet" href="styles.css" />
778328 12     <script src="https://unpkg.com/vue@3.4.9/dist/vue.global.js" defer></script>
38b8f3 13     <script src="app.js" defer></script>
CM 14   </head>
15   <body>
16     <header>
17       <h1>Vue Events</h1>
18     </header>
19     <section id="events">
20       <h2>Events in Action</h2>
21       <button v-on:click="add(10)">Add 10</button>
22       <button v-on:click="reduce(5)">Subtract 5</button>
23       <p>Result: {{ counter }}</p>
778328 24       <input type="text" v-model="name" />
CM 25       <input type="text" v-model="cognome" />
26       <button v-on:click="resetInput">Reset Input</button>
27       <p>Your Name: {{ fullname }}</p>
38b8f3 28     </section>
CM 29   </body>
30 </html>