software-development-2022-e.../session-4/2-nochmals-v-for-und-v-model/index.html

25 lines
704 B
HTML

<!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="app">
<input type="text" v-model="newPizza" />
<button @click="addPizzaName">Your new pizza</button>
<ul>
<li v-for="pizza in pizzas">{{pizza}}</li>
</ul>
</section>
</body>
</html>