1

this is my code..

 <div class="container-fluid" id="con2">
      <div class="row-fluid" id="row2">
            <div  ng-repeat="product in productDetails" class="row">
              <div id="searchDiv1" class="col-lg-offset-1 col-lg-2 col-md-offset-1 col-md-2 col-sm-offset-2 col-sm-1 col-xs-offset-1 col-xs-2 padding-0" id="div21" >
                <div class="Enlarge">
                  <img style="width:70px; height:70px;"  class="center-block enlarge pull-right {{product.classInfo}}" ng-model="productImage" ng-src="{{product.documents.image}}">
                  <span>  <img id="dataImage"  ng-src="{{product.documents.image}}"></span>
                </div>

              </div>
              <div class="col-lg-5 col-md-5 col-sm-8 col-xs-6 {{product.classInfo}}" id="div23">
                <div id="p2" class="ng-binding "><a href="#" ng-click="openProductSheet(product.id)" >{{product.id}}</a></div>
                <div id="p3" class="ng-binding" > {{product.descriptionTranslation}}</div>
              </div>
            </div>
      </div>

The problem is that the same page is getting loading instead of link in new tab] I saw some of the blogs of stackoverflow but not able to fix the problem.what is the mistake i am doing ?? any help is appreciable.

Thanks

schneider
  • 273
  • 1
  • 3
  • 8

1 Answers1

0

Try changing the link by adding a target attribute:

<a href="#" target="_blank" ng-click="openProductSheet(product.id)" >{{product.id}}</a>
jojo
  • 1,135
  • 1
  • 15
  • 35