Below is the code for checkbox :
How to style checkbox with background color and border when checked.
<input type="checkbox" ng-model="vehicle.selected" name="selectedVariants[]"
value="{{vehicle.name}}" ng-checked="{{vehicle.selected}}" />
Below is the code for checkbox :
How to style checkbox with background color and border when checked.
<input type="checkbox" ng-model="vehicle.selected" name="selectedVariants[]"
value="{{vehicle.name}}" ng-checked="{{vehicle.selected}}" />
No need for angular, or any JS for that matter.
html (notice that I have added a class):
<input type="checkbox" ng-model="vehicle.selected" name="selectedVariants[]" class="custom-class-here"
value="{{vehicle.name}}" ng-checked="{{vehicle.selected}}" />
css:
.custom-class-here:checked {
background-color: #123456;
border: 1px solid #654321;
}