Skip to content
This repository was archived by the owner on Apr 30, 2018. It is now read-only.

Commit bd955d6

Browse files
committed
fixed value capture for radio, added default
1 parent 877619e commit bd955d6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/directives/formly-field-radio.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
<input type="radio"
1010
name="{{id}}"
1111
id="{{id + '_'+ $index}}"
12-
ng-value="option.value">
12+
ng-value="option.value"
13+
ng-model="$parent.value">
1314
{{option.name}}
1415
</label>
1516
</div>

src/views/home.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ app.controller('home', function($scope, $parse, $rootScope) {
1616
}, {
1717
type: 'radio',
1818
label: 'Have you tried EmberJs yet?',
19+
default: 'no',
1920
options: [
2021
{
2122
name: 'Yes, and I love it!',

0 commit comments

Comments
 (0)