Alternative for Window.Open() in Angular services
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2024 09:37 PM - edited 09-12-2024 05:51 AM
Hi Team,
I am working for on virtual agent application.
As part of best practice we cannot go with the below client contraoller.
window.open().
which angular service will help me as an alternative for window.open()?????
when i was going through the code i saw they have used for poping up window the below code .
<li ng-if="::(data.connect_support_queue_id && !isAgentChatConfigured)" role="presentation"><a href ng-click="openPopUp()" role="menuitem">${Live Chat}</a></li>
$scope.openPopUp = function() {
var url = "$chat_support.do?queueID=" + $scope.data.connect_support_queue_id;
var popup = window.open (url, "popup", "width=900, height=600");
};
Labels:
0 REPLIES 0