38 lines
4 KiB
HTML
Executable file
38 lines
4 KiB
HTML
Executable file
<a href="http://github.com/angular/angular.js/tree/v1.2.0rc1/src/ng/directive/input.js#L670" class="view-source btn btn-action"><i class="icon-zoom-in"> </i> View source</a><a href="http://github.com/angular/angular.js/edit/master/src/ng/directive/input.js" class="improve-docs btn btn-primary"><i class="icon-edit"> </i> Improve this doc</a><h1><code ng:non-bindable="">textarea</code>
|
|
<div><span class="hint">directive in module <code ng:non-bindable="">ng</code>
|
|
</span>
|
|
</div>
|
|
</h1>
|
|
<div><h2 id="Description">Description</h2>
|
|
<div class="description"><div class="ng-directive-page ng-directive-textarea-page"><p>HTML textarea element control with angular data-binding. The data-binding and validation
|
|
properties of this element are exactly the same as those of the
|
|
<a href="api/ng.directive:input"><code>input element</code></a>.</p>
|
|
</div></div>
|
|
<h2 id="Usage">Usage</h2>
|
|
<div class="usage"><p>This directive can be used as custom element, but be aware of <a href="guide/ie">IE restrictions</a>.</p>as element:<pre class="prettyprint linenums"><textarea
|
|
ngModel="{string}"
|
|
[name="{string}"]
|
|
[required]
|
|
[ngRequired="{string}"]
|
|
[ngMinlength="{number}"]
|
|
[ngMaxlength="{number}"]
|
|
[ngPattern="{string}"]
|
|
[ngChange="{string}"]>
|
|
</textarea></pre>
|
|
<h4 id="parameters">Parameters</h4><table class="variables-matrix table table-bordered table-striped"><thead><tr><th>Param</th><th>Type</th><th>Details</th></tr></thead><tbody><tr><td>ngModel</td><td><a href="" class="label type-hint type-hint-string">string</a></td><td><div class="ng-directive-page ng-directive-textarea-page"><p>Assignable angular expression to data-bind to.</p>
|
|
</div></td></tr><tr><td>name <div><em>(optional)</em></div></td><td><a href="" class="label type-hint type-hint-string">string</a></td><td><div class="ng-directive-page ng-directive-textarea-page"><p>Property name of the form under which the control is published.</p>
|
|
</div></td></tr><tr><td>required <div><em>(optional)</em></div></td><td><a href="" class="label type-hint type-hint-string">string</a></td><td><div class="ng-directive-page ng-directive-textarea-page"><p>Sets <code>required</code> validation error key if the value is not entered.</p>
|
|
</div></td></tr><tr><td>ngRequired <div><em>(optional)</em></div></td><td><a href="" class="label type-hint type-hint-string">string</a></td><td><div class="ng-directive-page ng-directive-textarea-page"><p>Adds <code>required</code> attribute and <code>required</code> validation constraint to
|
|
the element when the ngRequired expression evaluates to true. Use <code>ngRequired</code> instead of
|
|
<code>required</code> when you want to data-bind to the <code>required</code> attribute.</p>
|
|
</div></td></tr><tr><td>ngMinlength <div><em>(optional)</em></div></td><td><a href="" class="label type-hint type-hint-number">number</a></td><td><div class="ng-directive-page ng-directive-textarea-page"><p>Sets <code>minlength</code> validation error key if the value is shorter than
|
|
minlength.</p>
|
|
</div></td></tr><tr><td>ngMaxlength <div><em>(optional)</em></div></td><td><a href="" class="label type-hint type-hint-number">number</a></td><td><div class="ng-directive-page ng-directive-textarea-page"><p>Sets <code>maxlength</code> validation error key if the value is longer than
|
|
maxlength.</p>
|
|
</div></td></tr><tr><td>ngPattern <div><em>(optional)</em></div></td><td><a href="" class="label type-hint type-hint-string">string</a></td><td><div class="ng-directive-page ng-directive-textarea-page"><p>Sets <code>pattern</code> validation error key if the value does not match the
|
|
RegExp pattern expression. Expected value is <code>/regexp/</code> for inline patterns or <code>regexp</code> for
|
|
patterns defined as scope expressions.</p>
|
|
</div></td></tr><tr><td>ngChange <div><em>(optional)</em></div></td><td><a href="" class="label type-hint type-hint-string">string</a></td><td><div class="ng-directive-page ng-directive-textarea-page"><p>Angular expression to be executed when input changes due to user
|
|
interaction with the input element.</p>
|
|
</div></td></tr></tbody></table></div>
|
|
</div>
|