refactoring

This commit is contained in:
Xenia Grünzinger 2018-11-29 09:46:47 +01:00
parent 03935ea5c3
commit 0ece964326
2 changed files with 8 additions and 8 deletions

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'

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>