input (directive in module ng )

Description

HTML input element control with angular data-binding. Input control follows HTML5 input types and polyfills the HTML5 validation behavior for older browsers.

Usage

as element (see IE restrictions)
<input
       ngModel="{string}"
       [name="{string}"]
       [required]
       [ngMinlength="{number}"]
       [ngMaxlength="{number}"]
       [ngPattern="{string}"]
       [ngChange="{string}"]>
</input>

Parameters

Example

Source







Demo