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


ဥပမာ

ထည့်သွင်းမှုအကွက်၏ စာသားကို ကူးယူသည့်အခါ စကားရပ်တစ်ခုကို လုပ်ဆောင်ပါ-

<input ng-copy="count = count + 1" ng-init="count=0" value="Copy this text" />

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

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

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


အထားအသို

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

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


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

Value Description
expression An expression to execute when the text of an element is being copied.