AngularJS ng-mouseleaveनिर्देश


उदाहरण

जब माउस कर्सर <div> तत्व छोड़ता है तो एक अभिव्यक्ति निष्पादित करें:

<div ng-mouseleave="count = count + 1" ng-init="count=0">Mouse over me! (and mouse away from me...)</div>

<h1>{{count}}</h1>

परिभाषा और उपयोग

निर्देश एंगुलरजेएस को ng-mouseleaveबताता है कि जब माउस कर्सर विशिष्ट HTML तत्व छोड़ देता है तो क्या करना है।

AngularJS का ng-mouseleaveनिर्देश तत्व के मूल onmouseleave ईवेंट को ओवरराइड नहीं करेगा, दोनों को निष्पादित किया जाएगा।


वाक्य - विन्यास

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

सभी HTML तत्वों द्वारा समर्थित।


पैरामीटर मान

Value Description
expression An expression to execute when the mouse cursor leaves an element.