-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to hide chat widget on page leave. #47
Comments
Hello @Saqib92 👋 If you would like to hide the Chat Widget on particular pages you can use In case you would like to destroy the widget completely, just use
|
dynamic page.ts
page.html
|
Hi @Saqib92, I have tried it the same way, it is maximizing/minimizing/hiding the widget fine for me now. But I am looking to find the solution to hide/maximize/minimize the widget from other component like Login.component/AccountDetails.component. Do you have any solution for the same, much like we do in js as below, I need to implement in angular, please help me out. LiveChatWidget.get(‘chat_data’) Please note that, LiveChatWidget is globally accessible in js, I should be able to do these where ever is required across the application in Angular. @walaszczykm please help me to proceed further. |
you can do something like this: #40 (comment) |
@Saqib92 Thanks for the prompt reply, I have tried the BehaviourService too in other components. |
@walaszczykm please help me to proceed further. |
Is your feature request related to a problem? Please describe.
How can I hide / Destroy chat widget on page leave. I dont want to show chat widget on all pages. i have a support page and want to show chat only on support page.
Describe the solution you'd like
there should be an option to show/hide on widget.
Describe alternatives you've considered
i hide it via css.
Additional context
I am using angular with ionic framework. and i want to hide it using
*ngIf
or is there an directive available ?The text was updated successfully, but these errors were encountered: