Today, We want to share with you Angularjs multiple Check and uncheck all checkbox.In this post we will show you angularjs table checkbox select all, hear for Check uncheck all multiple checkboxes with AngularJS we will give you demo and example for implement.In this post, we will learn about Check Uncheck All / Select Deselect All Multiple CheckBoxes using Single CheckBox in AngularJS with an example.
Angularjs multiple Check and uncheck all checkbox
There are the Following The simple About Angularjs multiple Check and uncheck all checkbox Full Information With Example and source code.
As I will cover this Post with live Working example to develop multiple checkbox select/deselect using angularjs, so the multiple checkbox select/deselect using angularjs for this example is following below.
check/uncheck all checkboxes with AngularJS
index.html
<!doctype html> <html> <head> <title>Select all and Deselect all checkboxes in angularjs - pakainfo.com</title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script> </head> <body ng-app='pakaApp'> <h2>Check and uncheck all checkbox using Angularjs</h2> <div ng-controller="membersController"> <input type='checkbox' value='' ng-model='selectAll' >Check/Uncheck All<br/> <input type='checkbox' ng-checked="selectAll" >AngularJS<br/> <input type='checkbox' ng-checked="selectAll">Ankit Kathiriya<br/> <input type='checkbox' ng-checked="selectAll">Chirag Dethariya<br/> <input type='checkbox' ng-checked="selectAll" >Dhaval Dave<br/> </div> <a href="https://www.pakainfo.com/" target="_blank" alt="pakainfo" title="pakainfo">Free Download Example - Pakainfo.com</a> </body> <script type="text/javascript"> var app = angular.module('pakaApp', []); app.controller('membersController', ['$scope', '$http', function ($scope, $http) { }]); </script> </html>
Example 2: Check uncheck all Multiple Checkboxes with AngularJS
index.html
<!doctype html> <html> <head> <title>Check uncheck all Multiple Checkboxes with AngularJS - pakainfo.com</title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script> </head> <body ng-app='pakaApp'> <div ng-controller="membersController"> <h2>multiple checkbox select/deselect using angularjs</h2> <input type='button' id='but_selectAll' value='Check all' ng-click='selectAll()'> <input type='button' id='but_unselectAll' value='Uncheck all' ng-click='unselectAll()'> <br/> <input type='checkbox' ng-checked="selectAll" >Jaydeep Gondaliya<br/> <input type='checkbox' ng-checked="selectAll">Krunal Sisodiya<br/> <input type='checkbox' ng-checked="selectAll">Mayur Dhameliya<br/> <input type='checkbox' ng-checked="selectAll" >Hitesh Dhameliya<br/> <a href="https://www.pakainfo.com/" target="_blank" alt="pakainfo" title="pakainfo">Free Download Example - Pakainfo.com</a> </div> </body> <script type="text/javascript"> var app = angular.module('pakaApp', []); app.controller('membersController', ['$scope', '$http', function ($scope, $http) { $scope.selectAll = function(){ $scope.selectAll = true; } $scope.unselectAll = function(){ $scope.selectAll = false; } }]); </script> </html>
Angular 6 CRUD Operations Application Tutorials
Read :
Summary
You can also read about AngularJS, ASP.NET, VueJs, PHP.
I hope you get an idea about Angularjs multiple Check and uncheck all checkbox.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.