ng-copy
توجيه AngularJS
مثال
نفِّذ تعبيرًا عندما يتم نسخ نص حقل الإدخال:
<input ng-copy="count = count + 1" ng-init="count=0" value="Copy this text"
/>
التعريف والاستخدام
يخبر ng-copy
التوجيه AngularJS بما يجب فعله عند نسخ عنصر HTML.
ng-copy
لن يتجاوز التوجيه من AngularJS حدث oncopy الأصلي للعنصر ، وسيتم تنفيذ كل من التعبير ng-copy
وحدث oncopy الأصلي.
بناء الجملة
<element ng-copy="expression"></element>
مدعوم من قبل جميع عناصر HTML.
قيمه المعامل
Value | Description |
---|---|
expression | An expression to execute when the text of an element is being copied. |