refactoring
This commit is contained in:
parent
03935ea5c3
commit
0ece964326
@ -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'
|
||||
|
@ -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…
x
Reference in New Issue
Block a user