<html>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>
<body ng-app="">
<p>My cars:</p>
<input type="checkbox" ng-model="all"> Check all<br><br>
<input type="checkbox" ng-checked="all">Volvo<br>
<input type="checkbox" ng-checked="all">Ford<br>
<input type="checkbox" ng-checked="all">Mercedes
<p>Click "Check all" to check all three cars.</p>
</body>
<!-- Mirrored from www.w3schools.com/angular/tryit.asp?filename=try_ng_ng-checked by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 18:00:19 GMT -->
</html>