AngularJS ng-options
Directive
AngularJS Example
Populate a dropdown list with array elements:
Definition and Usage
The ng-options directive is used to fill the options of a <select> element with <options>.
The ng-options directive uses an array to populate the dropdown list, often used together with the ng-repeat directive.
Syntax
The <details> element supports this directive.
Parameter Values
Value | Description |
---|---|
array expression | The expression to populate the select element with options from an array. |