ng-cutتوجيه AngularJS


مثال

نفِّذ تعبيرًا عندما يتم قص نص حقل الإدخال:

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

التعريف والاستخدام

يخبر ng-cutالتوجيه AngularJS بما يجب فعله عند قص نص عنصر HTML.

ng-cutلن يتجاوز التوجيه من AngularJS حدث القطع الأصلي للعنصر ، وسيتم تنفيذ كل من التعبير ng-cutوحدث القطع الأصلي.


بناء الجملة

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

مدعوم من قبل <A> ، <input> ، <select> ، <textarea> ، وكائن النافذة.


قيمه المعامل

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