input (directive in module ng )

Improve this doc

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

This directive can be used as custom element, but we aware of IE restrictions.

as element:
<input
       ngModel="{string}"
       [name="{string}"]
       [required]
       [ngRequired="{boolean}"]
       [ngMinlength="{number}"]
       [ngMaxlength="{number}"]
       [ngPattern="{string}"]
       [ngChange="{string}"]>
</input>

Parameters

Example

Source







Demo