<!DOCTYPE html> <div ng-app="myApp" ng-controller="myCtrl"> <select ng-model="selectedName" ng-options="x for x in names"> </div> <script> <p>This example shows how to fill a dropdown list using the ng-options directive.</p> </body> |
This example shows how to fill a dropdown list using the ng-options directive. |