input
ng
HTML input element control with angular data-binding. Input control follows HTML5 input types and polyfills the HTML5 validation behavior for older browsers.
This directive can be used as custom element, but be aware of IE restrictions.
as element:<input ngModel="{string}" [name="{string}"] [required] [ngRequired="{boolean}"] [ngMinlength="{number}"] [ngMaxlength="{number}"] [ngPattern="{string}"] [ngChange="{string}"]> </input>
Param | Type | Details |
---|---|---|
ngModel | string | Assignable angular expression to data-bind to. |
name (optional) | string | Property name of the form under which the control is published. |
required (optional) | string | Sets |
ngRequired (optional) | boolean | Sets |
ngMinlength (optional) | number | Sets |
ngMaxlength (optional) | number | Sets |
ngPattern (optional) | string | Sets |
ngChange (optional) | string | Angular expression to be executed when input changes due to user interaction with the input element. |