format with prettier

This commit is contained in:
Andreas Zweili 2021-01-18 17:40:53 +01:00
parent 507efa5fdd
commit b140453513
2 changed files with 19 additions and 19 deletions

View File

@ -1,9 +1,9 @@
const app = Vue.createApp({ const app = Vue.createApp({
data() { data() {
return { return {
counter: 0, counter: 0,
}; };
}, },
}); });
app.mount('#events'); app.mount("#events");

View File

@ -1,26 +1,26 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head>
<head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vue Basics</title> <title>Vue Basics</title>
<link <link href="https://fonts.googleapis.com/css2?family=Jost:wght@400;700&display=swap" rel="stylesheet" />
href="https://fonts.googleapis.com/css2?family=Jost:wght@400;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="styles.css" /> <link rel="stylesheet" href="styles.css" />
<script src="https://unpkg.com/vue@next" defer></script> <script src="https://unpkg.com/vue@next" defer></script>
<script src="app.js" defer></script> <script src="app.js" defer></script>
</head> </head>
<body>
<body>
<header> <header>
<h1>Vue Events</h1> <h1>Vue Events</h1>
</header> </header>
<section id="events"> <section id="events">
<h2>Events in Action</h2> <h2>Events in Action</h2>
<button>Add</button> <button>Add</button>
<button>Remove</button> <button>Reduce</button>
<p>Result: {{ counter }}</p> <p>Result: {{ counter }}</p>
</section> </section>
</body> </body>
</html> </html>