rpaschoal / ng-chat

💬 A simple facebook/linkedin lookalike chat module for Angular applications.
MIT License
155 stars 92 forks source link

ChatController doesn't get instantiated #212

Closed a-hosseini closed 1 year ago

a-hosseini commented 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:

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.

Can you help me solve this please?

rpaschoal commented 1 year ago

This project has been archived and is no longer maintained.