At the moment, I am facing an issue with setting up an array of options for the user to choose from. Here is how my setup looks:
Here are the available options:
$scope.licenses = [...]
The currently selected option is:
$scope.selectedLicense = $scope.licenses[0];
In my HTML code, it appears as follows:
<ul>
<li ng-repeat="lic in licenses">
<input type="radio" ng-model="selectedLicense" value="lic"></input>
{{lic.nrOfLicenses}}
</li>
</ul>
However, upon loading the page, no radio button is automatically pre-selected.
You can find a working example here: http://jsfiddle.net/HB7LU/9765/
I can't seem to figure out what might be causing this issue. Any ideas on where I may have gone wrong?