aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVojta Jina2012-03-20 13:05:42 -0700
committerVojta Jina2012-03-20 14:39:23 -0700
commitade6c452753145c84884d17027a7865bf4b34b0c (patch)
treeb44cf36ce410187ab43bc2b236b91c1be0a26a4a /src
parent9eafd10fcdf8846194bbc325fe23fd3d6d9da155 (diff)
downloadangular.js-ade6c452753145c84884d17027a7865bf4b34b0c.tar.bz2
feat(input.radio): Allow value attribute to be interpolated
Diffstat (limited to 'src')
-rw-r--r--src/directive/input.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/directive/input.js b/src/directive/input.js
index adb8102c..c9553e39 100644
--- a/src/directive/input.js
+++ b/src/directive/input.js
@@ -560,6 +560,8 @@ function radioInputType(scope, element, attr, ctrl) {
var value = attr.value;
element[0].checked = isDefined(value) && (value == ctrl.$viewValue);
};
+
+ attr.$observe('value', ctrl.$render);
}
function checkboxInputType(scope, element, attr, ctrl) {