Angular set ng-checked for specific child onclick <p>If someone clicks on the link the child input element should get the attribute ng-checked = "true" and if he clicks again it should be set false.</p> <p>I already managed to implement this behaviour but the problem is that i have multiple checkbox probably around 20 and i do not want to set a unique variable for all of those </p> <pre><code>&lt;a href="" ng-click="setSelect()"&gt; &lt;div class="checkbox"&gt; &lt;label&gt; &lt;input type="checkbox" ng-model="someModel" ng-checked= "selectStatus"&gt; text &lt;/label&gt; &lt;/div&gt; &lt;/a&gt; </code></pre> <p>and the according setSelect method</p> <pre><code>$scope.toggleSelect = true; $scope.setSelect = function () { if ($scope.toggleSelect){ $scope.selectStatus = true; $scope.toggleSelect = false; } else { $scope.selectStatus = false; $scope.toggleSelect = true; } }; </code></pre> <p>is it possible to do this without jquery and in an easy way?</p>