finished L2

This commit is contained in:
bwbl 2026-01-13 13:51:31 +01:00
parent 6455348275
commit 33da1d4ac6
2 changed files with 13 additions and 6 deletions

View File

@ -6,14 +6,13 @@
<!-- Import Styles -->
<link rel="stylesheet" href="./assets/styles.css" />
<!-- Import Vue.js -->
<script src="https://unpkg.com/vue@3.0.11/dist/vue.global.js"></script>
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<!-- Import Js -->
<script type="module" src="./main.js"></script>
</head>
<body>
<div id="app">
<h1>Product goes here</h1>
<h1>{{ product }}</h1>
</div>
<!-- Import Js -->
<script src="./main.js"></script>
</body>
</html>

10
main.js
View File

@ -1 +1,9 @@
const product = 'Socks'
const app = Vue.createApp({
data() {
return {
product: 'Boots'
}
}
}).mount('#app');
app.product = "test"