From 93dc6a110a496a9557701f314e670629e330edd3 Mon Sep 17 00:00:00 2001 From: Abdessamad Idrissi Date: Tue, 7 Jan 2014 00:47:41 +0100 Subject: [PATCH] Update input.js Extend the example with ng-value showing how to deal with default checked radio boxes. --- src/ng/directive/input.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ng/directive/input.js b/src/ng/directive/input.js index 00c1c8218c73..e2c840f084ee 100644 --- a/src/ng/directive/input.js +++ b/src/ng/directive/input.js @@ -320,10 +320,11 @@ var inputType = {
Red
- Green
+ Green
Blue
color = {{color}}
+ Note that `ng-value="green"` sets the default checked radio box to be the one with `green` as value. it('should change state', function() {