angular-formly-templates-bootstrap
Version:
Angular-Formly plugin which outputs bootstrap compatible form fields.
13 lines (12 loc) • 409 B
HTML
<div class="radio-group">
<div ng-repeat="(key, option) in to.options" ng-class="{ 'radio': !to.inline, 'radio-inline': to.inline }">
<label>
<input type="radio"
id="{{id + '_'+ $index}}"
tabindex="0"
ng-value="option[to.valueProp || 'value']"
ng-model="model[options.key]">
{{option[to.labelProp || 'name']}}
</label>
</div>
</div>