ng-mouseleave
توجيه AngularJS
مثال
نفِّذ تعبيرًا عندما يترك مؤشر الماوس عنصر <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
التوجيه AngularJS بما يجب فعله عندما يترك مؤشر الماوس عنصر HTML المحدد.
لن يتجاوز ng-mouseleave
التوجيه من AngularJS حدث onmouseleave الأصلي للعنصر ، وسيتم تنفيذ كلاهما.
بناء الجملة
<element ng-mouseleave="expression"></element>
مدعوم من قبل جميع عناصر HTML.
قيمه المعامل
Value | Description |
---|---|
expression | An expression to execute when the mouse cursor leaves an element. |