AngularJS ng-mouseover
निर्देश
उदाहरण
जब माउस कर्सर <div> तत्व पर चलता है तो एक अभिव्यक्ति निष्पादित करें:
<div ng-mouseover="count = count + 1" ng-init="count=0">Mouse over
me!</div>
<h1>{{count}}</h1>
परिभाषा और उपयोग
निर्देश एंगुलरजेएस को ng-mouseover
बताता है कि जब माउस कर्सर विशिष्ट HTML तत्व पर चलता है तो क्या करना है।
AngularJS का ng-mouseover
निर्देश तत्व के मूल ऑनमाउसओवर ईवेंट को ओवरराइड नहीं करेगा, दोनों को निष्पादित किया जाएगा।
वाक्य - विन्यास
<element ng-mouseover="expression"></element>
सभी HTML तत्वों द्वारा समर्थित।
पैरामीटर मान
Value | Description |
---|---|
expression | An expression to execute when the mouse cursor moves over an element. |