<div class="hover-div" ng-right-click>
<img id="myImage" class="imageSet" src="{{list.img}}" ng-click="currentImage($index)">
</div>
//here we crate the module for the CRUD application
var app= angular.module("shoppingApp", []);
app.directive('ngRightClick', function() {
return {
restrict: 'A',
link: function(scope, element, attr) {
element.bind('contextmenu', function(e) {
e.preventDefault();
})
}
}
})
//THIS IS JQUERY CODE FOR IMAGE IS
$("#myImage").mousemove( function(e) {
return false;
});
$("#myImage").attr("draggable", false);
I have create a Ecommerce website in AngularJS technology in which i have to apply the image restriction feature like - user is not able to copy the image via drag and drop in the browser. So,how to implement this feature in our website in AngularJS ? ?