I post the data to server and receive data from server , In data, It have a url , then I will open the url in new Tab, but when I use $window.open(data.url) to open ,it is not working
I can not found any error in console ,this is my code
$http({
method : 'POST',
url : url,
data : $.param(formData), // pass in data as strings
headers : { 'Content-Type': 'application/x-www-form-urlencoded' }
})
.success(function(data) {
$window.open(data.url)
});