import { Component, OnInit, NgZone, OnDestroy } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
-import { ChatroomService } from "../chatroom.service";
-import { UserService } from "../user.service";
-import { Chatroom } from "../chatroom";
-import { Message } from "../message";
+import { ChatroomService } from '../chatroom.service';
+import { UserService } from '../user.service';
+import { Chatroom } from '../chatroom';
+import { Message } from '../message';
@Component({
selector: 'app-chatroom',
})
export class ChatroomComponent implements OnInit, OnDestroy {
- chatroom: Chatroom = { id: 'FOO', name: 'BAR'};
+ chatroom: Chatroom = { id: 'FOO', name: 'BAR' };
messages: Message[] = [];
constructor(