how to avoid the link to be blocked by browser popup?
my demo work but it only open the first link, I wonder.. I used foreach..
how to avoid the link to be blocked by browser popup?
my demo work but it only open the first link, I wonder.. I used foreach..
Added value, key
to CB function args and used that to get at the link value, also added the window name attribute telling open function to open blank window each time:
angular.forEach($scope.links, function(value, key){
$window.open("link.html/?" + value.link, '_blank');
});
$scope.links.link
was returning "undefined" in that location.