From 42db27c5d0818419deab09d3cbc0aff1fcb946eb Mon Sep 17 00:00:00 2001 From: sschum Date: Thu, 13 Jul 2023 14:53:36 +0200 Subject: [PATCH] update --- src/index.html | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/index.html b/src/index.html index d59f8fb..0278b94 100644 --- a/src/index.html +++ b/src/index.html @@ -20,11 +20,11 @@
-
-
+
+
-
{{ card }}
+
{{ card.content }} ({{ card.id }})
@@ -42,7 +42,13 @@ }, methods: { addCard() { - this.cards.push(this.message) + this.cards.push({ + id: new Date().getTime(), + content: this.message, + }) + }, + removeCard(i) { + this.cards.splice(i, 1) } } })