Alternative for Window.Open() in Angular services

sony8
Tera Contributor

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");
	};

 

 

0 REPLIES 0