AngularJS

AngularJS Directives

AngularJS Filters and Elements

AngularJS Tutorials

AngularJS ng mousedown Directive

AngularJS ng-mousedown Directive

 

 

The ng-mousedown directive is used to tell AngularJS what to do when a mouse button is pressed down on the specific HTML element.
It will not override the elements original onmousedown event and both will be executed.

 

Order of a mouse click is:-

 

  1. Mousedown
  2. Mouseup
  3. Click

 

Syntax:-

 

< element ng-mousedown="expression" >< /element >

 

Further Explanation:-

 

Value Description
expression An expression to execute when a mouse button is clicked.

Code Explanation

All Tutorials related to AngularJS Directives

All Sections related to AngularJS