Dinkar Chavhan

Dinkar Chavhan

  • NA
  • 1.7k
  • 990.2k

AngularJS window.open not working

Nov 7 2014 10:25 PM
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)