Pic
{{chat.id}}
diff --git a/src/app/components/chatlist/chatlist.component.ts b/src/app/components/chatlist/chatlist.component.ts
index c108945..998c1a6 100644
--- a/src/app/components/chatlist/chatlist.component.ts
+++ b/src/app/components/chatlist/chatlist.component.ts
@@ -1,7 +1,7 @@
import { Component, OnInit, Output, EventEmitter } from '@angular/core';
import { Chatinfo } from 'src/app/models/chatinfo';
-import { ChatService } from 'src/app/services/chat/chat.service';
import { Chat } from 'src/app/models/chat';
+import { ChatService } from 'src/app/services/chat/chat.service';
@Component({
selector: 'chatmanager-chatlist',
@@ -13,11 +13,12 @@ export class ChatlistComponent implements OnInit {
@Output() showChatEvent = new EventEmitter
();
@Output() showCreateChatEvent = new EventEmitter();
selectedChat: Chat;
+ chats: Array
constructor(private chatService: ChatService) { }
ngOnInit() {
-
+ this.chats = this.chatService.chats
}
showNewChat() {