Session 2

This commit is contained in:
marcgauch committed 2023-01-16 21:57:08 +01:00
1 parent da0c4e925d
commit c335f5a31f
24 files changed
+1678 -51

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>TITLE</title>
<link
href="https://fonts.googleapis.com/css2?family=Jost:wght@400;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="styles.css" />
<script src="https://unpkg.com/vue@next" defer></script>
<script src="app.js" defer></script>
</head>
<body>
<section id="assignment">
<input type="text" v-model="textfeld" />
<button @click="addTasks">Add Task</button>
<ul v-if="einblenden">
<!-- 2) Output the list of tasks here-->
<li v-for="task in tasks">{{ task }}</li>
</ul>
<p v-else>es wird nichts angezeigt...</p>
<!-- 3) When the below button is pressed, the list should be shown or hidden -->
<!-- BONUS: Also update the button caption -->
<button @click="einausblenden">{{buttonCaption}} List</button>
</section>
</body>
</html>