angular.widget.@ng:required

Work in Progress This page is currently being revised. It might be incomplete or contain inaccuracies.

Description

The ng:required attribute widget validates that the user input is present. It is a special case of the ng:validate attribute widget.

Dependencies

Usage

In HTML Template Binding

<INPUT ng:required>
   ...
</INPUT>

Parameters

Example

This example shows how the input element becomes red when it contains invalid input. Correct the input to make the error disappear.

I cannot be blank: <input type="text" name="value" ng:required><br/>