Angularjs Examples

AJS Examples


AngularJS ng-options Directive

The AngularJS ng-options directive is used to dynamically generate a list of <option> elements for the <select> element.

Syntax

AngularJS ng-options Arguments

Here is a list of AngularJS ng-options Arguments.

DirectivesDescription
ng-modelAngularJS expression to bind the text.
name (optional)Name of the control input control.
required (optional)Validate input type text is required.
ng-required (optional)AngularJS expression ng-required expression evaluates to true.
ng-options (optional)Add options to select control as array data sources or object data source.

AngularJS ng-options Directive Example

See Live Example