1
I need a help. I want to create a Checklist in which the items are true according to a list that steps to the Selected scope. And this list is updated as I click on the checks. If you click on All the list should be updated with all the items and uncheck passes all to false. Any suggestions? Thanks.
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>
Jorge thanks for the tip, but I’m using Angularjs.
– Andersson OS