I have corner flags with the following markup:
<div class="ml20" ng-repeat="rate in auraInfo.rates">
<label class="aura-checkbox">
<input type="checkbox"
ng-model="model.checkedRates[$index]"
ng-true-value="{{ rate.id }}"
ng-false-value="????" />
</label>
</div>
checkedRates is an array that is populated with identifiers when the user checks the checkboxes. There is also a button that sends these identifiers to the server. If the user checks and deselects the same checkbox , the value "false" will be sent to the server.
How to set null (or completely remove an element from an array) if the checkbox is not selected?
Thanks in advance:)
source
share