Home
Tutorials
Microsoft Technologies Tutorials
Java Programming Tutorials
Web Designing Tutorials
Script Programming Tutorials
Database Programming Tutorials
Mobile Technologies Tutorials
Other Programming Tutorials
Examples
Articles
Tools
News
AngularJS Bind DropdownList with Ng-Repeat Example
Keywords : Angularjs ng-repeat dropdown example, Angularjs bind select box with ng-repeat example, Angularjs fill / populate dropdownlist with ng-repeat example, Angularjs bind select option value
Example
<!DOCTYPE html> <html> <head> <title> AngularJs Bind Select Box or Dropdown List with ng-repeat example </title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> <script> var app = angular.module('selectboxApp', []); app.controller('selectboxCtrl', function ($scope) { $scope.arrlist = [{ "userid": 1, "name": "Suresh" }, { "userid": 2, "name": "Rohini" }, { "userid": 3, "name": "Praveen" }]; }); </script> </head> <body ng-app="selectboxApp" ng-controller="selectboxCtrl" <div> <h3>AngularJS Bind Select Box or Dropdown List with ng-repeat Example</h3> <select name="users"> <option value="">--Select User--</option> <option ng-repeat="option in arrlist" value="{{option.userid}}">{{option.name}}</option> </select> </div> </body> </html>
Click Here to See Result
Result
Previous
Next