I need some help. I want to create a checklist in which the items are true according to a list that I move to the selected scope. And this list is updated as I go by clicking on the checks. If you click on All the list must be updated with all items and unchecking passes all to false. Any suggestion? Thank you.
app.controller("TesteController", function ($scope, $http, $window, $location) {
$scope.selected = ['A','C'];
}
<html>
<body>
<div class="row m-t-30px">
<div class="col-md-12">
<input type="checkbox" checked> <strong>Check Todos</strong>
</div>
</div>
<div class="row">
<div class="row">
<div class="col-md-12">
<div class="user-perfil">
<input type="checkbox" checked> A
</div>
<div class="user-perfil">
<input type="checkbox" checked> B
</div>
<div class="user-perfil">
<input type="checkbox" checked> C
</div>
<div class="user-perfil">
<input type="checkbox" checked> D
</div>
</div>
</div>
</body>
</html>