# function with right click without blocking the context menu

I want to set up a rest call with right click on a div without blocking the normal context menu of the browser.

I found a option for a “ng-right-click” but it blocks the normal context menu:

app.directive('ngRightClick', function($parse) { return function(scope, element, attrs) { var fn =$parse(attrs.ngRightClick);
scope.$apply(function() { event.preventDefault(); fn(scope, {$event:event});