YouTip LogoYouTip

Ng Ng Mousedown

# AngularJS `ng-mousedown` Directive [![Image 3: AngularJS Reference Manual](#) AngularJS Reference Manual](#) * * * ## AngularJS Example Execute the expression when the mouse button is pressed:
Click me!

{{count}}

[Try it yourself Β»](#) * * * ## Definition and Usage The **ng-mousedown** directive is used to tell AngularJS what to do when the mouse button is pressed on the specified HTML element. The **ng-mousedown** directive does not override the element's native onmousedown event. When the event is triggered, both the **ng-mousedown** expression and the native onmousedown event will be executed. The order of mouse click execution: 1. Mousedown 2. Mouseup 3. Click * * * ## Syntax All HTML elements support this directive. * * * ## Parameter Values | Value | Description | | --- | --- | | _expression_ | The expression to execute when the mouse is clicked. | * * AngularJS Reference Manual](#)
← Ng Ng MouseoverNg Ng Keyup β†’