aboutsummaryrefslogtreecommitdiffstats
path: root/scenario/widgets.html
diff options
context:
space:
mode:
Diffstat (limited to 'scenario/widgets.html')
-rw-r--r--scenario/widgets.html18
1 files changed, 10 insertions, 8 deletions
diff --git a/scenario/widgets.html b/scenario/widgets.html
index 21060ebf..c2042b68 100644
--- a/scenario/widgets.html
+++ b/scenario/widgets.html
@@ -2,9 +2,9 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<link rel="stylesheet" type="text/css" href="style.css"></link>
- <script type="text/javascript" src="../src/angular-bootstrap.js#autobind&rootScope=$view"></script>
+ <script type="text/javascript" src="../src/angular-bootstrap.js#autobind"></script>
</head>
- <body>
+ <body ng-init="$window.$scope = $root">
<table>
<tr>
<th>Description</th>
@@ -32,7 +32,7 @@
<td>radio</td>
<td>
<input type="radio" name="gender" value="female"/> Female <br/>
- <input type="radio" name="gender" value="male"/> Male
+ <input type="radio" name="gender" value="male" checked="checked"/> Male
</td>
<td>gender={{gender}}</td>
</tr>
@@ -42,7 +42,9 @@
<input type="checkbox" name="checkbox.tea" checked value="on"/> Tea<br/>
<input type="checkbox" name="checkbox.coffee" value="on"/> Coffe
</td>
- <td>checkbox={{checkbox}}</td>
+ <td>
+ <pre>checkbox={{checkbox}}</pre>
+ </td>
</tr>
<tr>
<td>select</td>
@@ -71,10 +73,10 @@
<td>ng-action</td>
<td>
<form ng-init="button.count = 0">
- <input type="button" value="button" ng-action="button.count = button.count + 1"/> <br/>
- <input type="submit" value="submit" ng-action="button.count = button.count + 1"/><br/>
- <input type="image" src="" ng-action="button.count = button.count + 1"/><br/>
- <a href="" ng-action="button.count = button.count + 1">action</a>
+ <input type="button" value="button" ng-change="button.count = button.count + 1"/> <br/>
+ <input type="submit" value="submit" ng-change="button.count = button.count + 1"/><br/>
+ <input type="image" src="" ng-change="button.count = button.count + 1"/><br/>
+ <a href="" ng-click="button.count = button.count + 1">action</a>
</form>
</td>
<td>button={{button}}</td>