javascript - Context Menu not working in ANGULARJS -
i trying add context menu value not populating.
<div class="m-l"> <a class="item-country text-orange" href="#/app/countryips/{{item.data['name']}}/ccode/{{item.data['country-code']}}" target="_blank"> {{item['data']['name']}} </a> <a class="item-ip" href="#/app/showips/{{item.data['name']}}/ip/{{item.data['ip']}}" target="_blank"><span context-menu="whitelist"> {{item.data['ip']}}</span> </a> <a href="" class="item-type text-orange"> {{item.data['type']}} </a> <a class="detail-icon" data-popup-open="popup-1" href="" ng-click="showmodal(item)"> <i class="fa fa-info-circle"></i> </a> </div>
javascript
$scope.whitelist = [ ['add white list', function($itemscope, $event, ip) { whitelist(ip); }] ];
now when add context template got undefined in ip
in controller.
<a onclick="window.location.href='your link'">
Comments
Post a Comment