1
Answer

AngularJS window.open not working

Dinkar Chavhan

Dinkar Chavhan

10y
4.7k
1
Hi,
I have one hrelink on click of that calling to MVC controller and get some URL and that url i am catch on client side controller  and pass to window.open('http://www.c-sharpcorner.com/1/302/angularjs.aspx') so alongwith my localhost url bind,means some third party url not opening.


Note:This is error
http://localhost:64913/"http://www.c-sharpcorner.com/1/302/angularjs.aspx".

like in controller:
$scope.CheckUrl = function () {
         debugger;
         $http.get("/Demo/GetUrl").success(function (responseData) {
             debugger;
           $scope.URLs= responseData;
           window.open($scope.URLs)
         });
         //$window.absUrl = $scope.URLs;
        
        
    }


guys if anyone know this issue please let me know

Answers (1)