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 Array List to Checkboxes Example
Keywords : Angularjs bind checkboxes with ng-repeat example, Angularjs bind list of checkbox values example, Angularjs checkbox bind to array list example, Angularjs checkbox array ng-repeat example
Example
<!DOCTYPE html> <html> <head> <title> AngularJs Binding Checkboxes with Array List Example </title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> <script> var app = angular.module('checkboxApp', []); app.controller('checkboxCtrl', function ($scope) { $scope.arrlist = [{ "userid": 1, "name": "Suresh" }, { "userid": 2, "name": "Rohini" }, { "userid": 3, "name": "Praveen" }]; }); </script> </head> <body ng-app="checkboxApp" ng-controller="checkboxCtrl"> <div> <h3>AngularJS Bind Checkboxes with Array List</h3> <div ng-repeat="user in arrlist"> <input type="checkbox" /> <label>{{user.name}}</label> </div> </div> </body> </html>
Click Here to See Result
Result
Previous
Next