The ngRclick directive allows you to specify custom behavior on a right click event.
How to use it:
- import the script: <script src="proxy.php?url=https%3A%2F%2Fgithub.com%2Fvitconte%2Frclick-directive.js"> </script>
- declare the dependency from the module 'angularRightClick'
e.g. angular.module('myApp', ['angularRightClick']) - add the attribute directive anywhere <ANY ng-rclick="function()"> ... </ANY>
Try it on jsFiddle: http://jsfiddle.net/vitconte/gujzqe90/
Find me on:
LinkedIn https://www.linkedin.com/pub/vittorio-conte/
Twitter https://twitter.com/vitconte
Find the community on:
LinkedIn http://www.linkedin.com/groups/AngularJS-Italia-7442742
Twitter https://twitter.com/AngularJSItalia