?
This document uses PHP Chinese website manual Release
可進行angular數(shù)據(jù)綁定的HTML textarea 元素。數(shù)據(jù)綁定和驗證元素屬性完全與input 元素相同。
<textarea
ng-model=""
[name=""]
[required=""]
[ng-required=""]
[ng-minlength=""]
[ng-maxlength=""]
[ng-pattern=""]
[ng-change=""]
[ng-trim=""]>
...
</textarea>
參數(shù) | 類型 | 詳述 |
---|---|---|
ngModel | string |
聲明用于數(shù)據(jù)綁定的Angular表達式。 |
name
(可選)
|
string |
發(fā)布到表單下的控件的屬性名稱。 |
required
(可選)
|
string |
如果未輸入值就設置 |
ngRequired
(可選)
|
string |
如果值為true則置為 |
ngMinlength
(可選)
|
number |
如果值短于minlength則設置 |
ngMaxlength
(可選)
|
number |
如果值長于maxlength則設置 |
ngPattern
(可選)
|
string |
如果值不匹配正則表達式則設置 |
ngChange
(可選)
|
string |
Angular表達式,當輸入元素通過用戶交互方式發(fā)生輸入變化時會執(zhí)行這個表達式。 |
ngTrim
(可選)
|
boolean |
如果設置為false,Angular將不自動去除輸入內容的空格。 |