22 lines
469 B
JavaScript
22 lines
469 B
JavaScript
const HomeRouter = {
|
|
template: `
|
|
<div>
|
|
<MsgCard
|
|
v-for="(msg, index) in messages"
|
|
:key="msg.id"
|
|
:msg="msg"
|
|
></MsgCard>
|
|
</div>`,
|
|
data: function () {
|
|
return { messages: _messages };
|
|
},
|
|
methods: {
|
|
refresh_messages: function () {
|
|
_messages.push ({id: 42, subject: "xxx", message: "warum habt ihr auch so viel", user: "nobody", tags:"foo"});
|
|
},
|
|
},
|
|
/*mounted: function() {
|
|
this.refresh_messages();
|
|
}*/
|
|
};
|