Browse Source

refactoring

pull/1/head
Xenia Grünzinger 6 years ago
parent
commit
0ece964326
2 changed files with 8 additions and 8 deletions
  1. 3
    3
      public/home.js
  2. 5
    5
      public/index.html

+ 3
- 3
public/home.js View File

@@ -19,21 +19,21 @@ new Vue({
messages: [
{
id: 1,
subject: 'Betreff_1',
subject: 'Betreff',
message: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam.',
tag: '#efi #bme #semester',
user: 'user_1'
},
{
id: 2,
subject: 'Betreff_2',
subject: 'Betreff',
message: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.',
tag: '#efi #fachschaft',
user: 'user_2'
},
{
id: 3,
subject: 'Betreff_3',
subject: 'Betreff',
message: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam.',
tag: '#efi #bei #wichtig',
user: 'user_3'

+ 5
- 5
public/index.html View File

@@ -38,11 +38,11 @@
<div id="message-list">
<msg-item
v-for="(msg, index) in messages"
v-bind:key="msg.id"
v-bind:subject="msg.subject"
v-bind:message="msg.message"
v-bind:tag="msg.tag"
v-bind:user="msg.user"
:key="msg.id"
:subject="msg.subject"
:message="msg.message"
:tag="msg.tag"
:user="msg.user"
></msg-item>
</div>
</div>

Loading…
Cancel
Save