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


ဥပမာ

မောက်စ်ကလစ်ဖြစ်သွားသောအခါ စကားရပ်တစ်ခုကို လုပ်ဆောင်ပါ-

<div ng-mousedown="count = count + 1" ng-init="count=0">Click me!</div>

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

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

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

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

မောက်စ်ကလစ်၏အစီအစဥ်မှာ-

1. မောက်စ်ချပါ။

2. မောက်စ်

3. ကိုနှိပ်ပါ။


အထားအသို

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

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


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

Value Description
expression An expression to execute when a mouse button is clicked.