diff options
| author | Misko Hevery | 2010-04-03 17:04:36 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-04-03 17:04:36 -0700 |
| commit | a80a61839a66d244c8bb14bbe2975746e02516c8 (patch) | |
| tree | 5a7b4d9d3e2a7a15ebf55e068782fbf2aa4ac6bf /scenario | |
| parent | 35ca4fcb9c49e505e28669e951e01ddedb01d7db (diff) | |
| download | angular.js-a80a61839a66d244c8bb14bbe2975746e02516c8.tar.bz2 | |
injection is now working
Diffstat (limited to 'scenario')
| -rw-r--r-- | scenario/widgets.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scenario/widgets.html b/scenario/widgets.html index 64e48c54..73674be9 100644 --- a/scenario/widgets.html +++ b/scenario/widgets.html @@ -4,8 +4,8 @@ <link rel="stylesheet" type="text/css" href="style.css"></link> <script type="text/javascript" src="../src/angular-bootstrap.js#autobind"></script> </head> - <body ng-init="$window.$scope = $root"> - <table ng-repeat="i in [0, 1]"> + <body ng-init="$window.$scope = this"> + <table> <tr> <th>Description</th> <th>Test</th> @@ -14,7 +14,7 @@ <tr><th colspan="3">Input text field</th></tr> <tr> <td>basic</td> - <td><input type="text" name="text.basic" /></td> + <td><input type="text" name="text.basic" ng-required /></td> <td>text.basic={{text.basic}}</td> </tr> <tr> @@ -70,7 +70,7 @@ </tr> <tr><th colspan="3">Buttons</th></tr> <tr> - <td>ng-action</td> + <td>ng-change<br/>ng-click</td> <td> <form ng-init="button.count = 0"> <input type="button" value="button" ng-change="button.count = button.count + 1"/> <br/> |
