open in new tab using right click not working angularjs using ng-repeat, ng-href and ng-click -


this 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 same page getting loading instead of link in new tab] saw of blogs of stackoverflow not able fix problem.what mistake doing ?? appreciable.

thanks

try changing link adding target attribute:

<a href="#" target="_blank" ng-click="openproductsheet(product.id)" >{{product.id}}</a> 

Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -