ng-mousemove
توجيه AngularJS
مثال
نفِّذ تعبيرًا عندما يتحرك مؤشر الماوس فوق عنصر <div>:
<div ng-mousemove="count = count + 1" ng-init="count=0">Mouse over
me!</div>
<h1>{{count}}</h1>
التعريف والاستخدام
يخبر ng-mousemove
التوجيه AngularJS بما يجب فعله عندما يتحرك مؤشر الماوس فوق عنصر HTML المحدد.
لن يتجاوز ng-mousemove
التوجيه من AngularJS حدث onmousemove الأصلي للعنصر ، وسيتم تنفيذ كلاهما.
بناء الجملة
<element ng-mousemove="expression"></element>
مدعوم من قبل جميع عناصر HTML.
قيمه المعامل
Value | Description |
---|---|
expression | An expression to execute when the mouse cursor moves over an element. |