Skip to content

Instantly share code, notes, and snippets.

@sciotta
Forked from mpdaugherty/right_radios.html
Last active August 29, 2015 13:56
Show Gist options
  • Save sciotta/8803783 to your computer and use it in GitHub Desktop.
Save sciotta/8803783 to your computer and use it in GitHub Desktop.
<div ng-repeat="m in milestone_choices" class="row-fluid">
<label><input type="radio" name="meaningless" ng-value="$index" ng-model="milestone_data.index" />
&nbsp;<span ng-bind="m.title"></span></label>
</div>
$scope.milestone_data = { index: 0 };
<input name="milestone" type="hidden" ng-value="repo.name + '--milestone--' + milestone.number"/>
<select ng-show="milestone_choices.length"
ng-model="milestone" ng-options="m.title for m in milestone_choices">
</select>
<div ng-repeat="milestone in milestone_choices" class="row-fluid">
<input type="radio" ng-model="milestone" name="milestone" ng-value="repo.name + '--milestone--' + milestone.number" ng-model="milestone"/>
&nbsp;<span ng-bind="milestone.title"></span>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment