1
<a class="seecode_button" href="#{{w.CouponID}}" ng-click="newwindow(w)" data-toggle="modal" data-target="#{{w.CouponID}}">CLICK Here</a>

$scope.newwindow = function(w) {
    $window.open(w.LandingPageURL, '_self');
    $window.open('#','_blank');
 };  

I am try to make when some one click on "CLICK Here" then need to open new window but need stay on current tab.

In my code current tab open in page its ok but popup also gone because of it refresh the page . I am using angular js 1.2.17 and for popup i am using bootstrap.js v3.0.0

Himanshu Bhuyan
  • 306
  • 2
  • 8
  • 20
  • possible duplicate of [Open a new tab in the background?](http://stackoverflow.com/questions/10812628/open-a-new-tab-in-the-background) – dirkk Aug 10 '14 at 08:56
  • After communicating with the OP in this exact duplicate question https://stackoverflow.com/questions/25226657/popup-need-to-open-when-new-tab-open-using-angular-js?noredirect=1#comment39294744_25226657 it becomes clear that the OP simply wants to open the new tab in background. Hence, it is a duplicate of the question I linked above. – dirkk Aug 10 '14 at 08:57

1 Answers1

0

If you don't want to refresh the page, then use an empty href attribute.

gkalpak
  • 47,844
  • 8
  • 105
  • 118