Closed a-hosseini closed 1 year ago
I have everything setup as instructed in the README file:
<ng-chat #ngChatInstance [adapter]="adapter" [userId]="chatUserId"></ng-chat> and in my component:
<ng-chat #ngChatInstance [adapter]="adapter" [userId]="chatUserId"></ng-chat>
export class ChatComponent implements OnInit { @ViewChild('ngChatInstance') protected ngChatInstance: IChatController; ... ngOnInit(): void { this.ngChatInstance.triggerOpenChatWindow(this.mockedParticipants); }
Everything works but the chat controller. this.ngChatInstance is the ngOnInit method comes back undefined.
this.ngChatInstance
ngOnInit
Can you help me solve this please?
This project has been archived and is no longer maintained.
I have everything setup as instructed in the README file:
<ng-chat #ngChatInstance [adapter]="adapter" [userId]="chatUserId"></ng-chat>
and in my component:Everything works but the chat controller.
this.ngChatInstance
is thengOnInit
method comes back undefined.Can you help me solve this please?