I'm attempting to set the default checked radio button while using ng-repeat. The below code is what I'm working with:
<div class="btn-group pull-right" id="dbHandle" data-toggle="buttons">
<label ng-repeat="handle in handles" for="" class="btn btn-primary">
<input type="radio" name="dbHandle" value="{{handle.handle}}" autocomplete="off">
{{handle.name}}
</label>
</div>
I would like for the first handle to be checked on page load. I've tried using the following ternary on the input element, but to no effect:
ng-checked="$index === 0 ? true : false"
ng-checked='$first'on radio