Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

home.js 469B

123456789101112131415161718192021
  1. const HomeRouter = {
  2. template: `
  3. <div>
  4. <MsgCard
  5. v-for="(msg, index) in messages"
  6. :key="msg.id"
  7. :msg="msg"
  8. ></MsgCard>
  9. </div>`,
  10. data: function () {
  11. return { messages: _messages };
  12. },
  13. methods: {
  14. refresh_messages: function () {
  15. _messages.push ({id: 42, subject: "xxx", message: "warum habt ihr auch so viel", user: "nobody", tags:"foo"});
  16. },
  17. },
  18. /*mounted: function() {
  19. this.refresh_messages();
  20. }*/
  21. };