livechat/chat-widget-adapters

Angular Adaptor Event Handlers

ThreatLockerDerek opened this issue · 0 comments

Describe the bug
I am using the Angular widget of LiveChat and I want to be able to call functions to manipulate the chat widget. For Example. set the widget visibility to 'maximize' and 'minimize'. From the documentation Here Angular Adapter it looks like I should be able to call LiveChatWidget.on('visibility_changed', onVisibilityChanged);. My Question is Am I only able to use this function call in a script tag html or can I use it also in my component.ts file?

To Reproduce
Steps to reproduce the behavior:

  1. OnInit LiveChat widget will be 'minimized'.
  2. On Click of widget call function to open another Angular Dialog.
  3. When form submitted in Dialog, can make a call to 'maximize' LiveChat widget.
  4. other function call between LiveChat and Angular components will continue.

Expected behavior
An example and expected behavior of how to make function calls between Angular components and LiveChat, Do I make calls in script tag HTML or can I make calls to the Widget in component files?

Screenshots
not applicable at this time

Desktop (please complete the following information):

  • OS: [Windows 10]
  • Browser [Edge*, Chrome, FireFox]

Smartphone (please complete the following information):
n/a

Additional context
n/a