1.

How is the mouse double click event accomplished?

Answer»

To specify any custom behaviour upon double click EVENT on any HTML element, AngularJS MAKES use of the ng-dblclick directive. It is to be NOTED that the ng-dblclick does not override the JavaScript’s ondblclick event. Example usage of this directive:

<BUTTON ng-dblclick="clicked = clicked + 1" ng-init="clicked=0"&GT; Double Click Here</button>

The above piece of code increments the clicked variable by 1 upon every double click on the button.



Discussion

No Comment Found