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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -