When I click the "APPLY" button, I need to get all the checked values of the checkboxes.
I am new to AngularJs. I have a list of checkboxes and according to the checkboxes condition I have to select and deselect the table columns, i.e the checkboxes are the actual columns.
HTML
<li ng-repeat="col in columns">
<span class="inputH">
<input type="checkbox" value="col.name" ng-if="col.default === true" checked ng-model="chk[col.name]" id="{{col.name}}">
<input type="checkbox" value="col.name" ng-if="col.default === false" ng-model="chk[col.name]" id="{{col.name}}">
</span>
<span class="textH">{{col.name}}</span>
</li>
<li>
<button class="btn-default" ng-click="onCustomizationApply()">Apply</button>
<button class="btn-default" ng-click="onCustomization()">Cancel</button>
</li>
If you notice, onCustomizationApply(), on this I need to get all checkboxes which are checked