AngularJS ng-mouseenterညွှန်ကြားချက်


ဥပမာ

မောက်စ်ကာဆာသည် <div> ဒြပ်စင်တစ်ခုသို့ ဝင်ရောက်သောအခါ စကားရပ်တစ်ခုကို လုပ်ဆောင်ပါ-

<div ng-mouseenter="count = count + 1" ng-init="count=0">Mouse over me!</div>

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

အဓိပ္ပါယ်နှင့် အသုံးပြုမှု

မောက်စ်ကာဆာတစ်ခုသည် သတ်သတ်မှတ်မှတ် HTML ဒြပ်စင်သို့ ဝင်ရောက်သည့်အခါ လုပ်ဆောင်ရမည့် အ ng-mouseenterရာအား AngularJS ကို ညွှန်ကြားသည်။

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


အထားအသို

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

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


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

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