input [url] (directive in module ng )

Description

Text input with URL validation. Sets the url validation error key if the content is not a valid URL.

Usage

<input type="url"
       ng-model="{string}"
       [name="{string}"]
       [required]
       [ng-minlength="{number}"]
       [ng-maxlength="{number}"]
       [ng-pattern="{string}"]
       [ng-change="{string}"]>

Parameters

Example

Source







Demo