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 ကို ပြောပြသည်

AngularJS မှ ng-mouseoverလမ်းညွှန်ချက်သည် ဒြပ်စင်၏မူရင်း onmouseover event ကို လွှမ်းမိုးမည်မဟုတ်ပါ၊ နှစ်ခုစလုံးကို လုပ်ဆောင်ပါမည်။


အထားအသို

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

HTML ဒြပ်စင်များအားလုံးမှပံ့ပိုးထားသည်။


ကန့်သတ်တန်ဖိုးများ

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