Can anyone help me figure out how to set the selected item as checked when using a radio button list?
Here is an example of my code:
<div ng-repeat="vehicle in filteredVehicle">
<input type="radio" name="radiog_lite" id="radio_{{$index}}" class="css-checkbox" ng-value="vehicle" ng-model="$parent.selectedVehicle" ng-disabled="vehicle.enable == '0'" />
<label for="radio_{{$index}}" class="css-label radGroup1" ng-if="vehicle.enable == '1'"></label>
<h5>{{vehicle.vehicleTypeName}}</h5>
I have created a Plunker with this code, and I need assistance in fixing the selected item. The selected vehicle can be found on $scope.selectedVehicle
.
Thank you