From 4eeb3d003bec13bb39a535c0c1e9502f9293c2ff Mon Sep 17 00:00:00 2001 From: Edwina Barbalan Date: Mon, 26 Nov 2018 13:03:08 +0100 Subject: [PATCH] Vue Nachrichtenfeld-Komponente erstellt (korrigiert) --- public/home.js | 7 +++---- public/index.html | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/public/home.js b/public/home.js index 1a25f80..0fd7a03 100644 --- a/public/home.js +++ b/public/home.js @@ -1,6 +1,5 @@ Vue.component('msg-item', { - template: `
-
+ template: `
{{ title }} @@ -10,12 +9,12 @@ Vue.component('msg-item', {
account_circle Erstellt von {{ user }} -
`, +
`, props: ['title', 'subject', 'tag', 'user'] }) new Vue({ - el: '#mewmessages-example', + el: '#newmessages-example', data: { messages: [ { diff --git a/public/index.html b/public/index.html index 7cf3f48..82fa3d2 100644 --- a/public/index.html +++ b/public/index.html @@ -36,7 +36,7 @@
-
+