index.ts 327 B

12345678910111213141516171819
  1. import Vue from 'vue';
  2. import ChatWindow from './component/ChatWindow.vue';
  3. let v = new Vue({
  4. el: '#app',
  5. template: `
  6. <div>
  7. <chat-window :channel="channel" />
  8. </div>
  9. `,
  10. data() {
  11. return {
  12. channel: 'general',
  13. };
  14. },
  15. components: {
  16. ChatWindow,
  17. },
  18. });