diff options
| author | Misko Hevery | 2010-02-04 13:27:56 -0800 | 
|---|---|---|
| committer | Misko Hevery | 2010-02-04 13:27:56 -0800 | 
| commit | 1da18e73a4d09b2a1ace92a4094eeba014eb7dc4 (patch) | |
| tree | 5f679ca5b575f29cd5938099a5dab37aa968c85f /example/widgets.html | |
| parent | 5dd43b85e73ca1708e7fd85094b533b02266a79a (diff) | |
| download | angular.js-1da18e73a4d09b2a1ace92a4094eeba014eb7dc4.tar.bz2 | |
consider widget errors only when widgets are visible
Diffstat (limited to 'example/widgets.html')
| -rw-r--r-- | example/widgets.html | 9 | 
1 files changed, 7 insertions, 2 deletions
| diff --git a/example/widgets.html b/example/widgets.html index 8299d4b6..1d74d243 100644 --- a/example/widgets.html +++ b/example/widgets.html @@ -9,15 +9,20 @@          angular.compile(document).init();        });      </script> +    <link rel="StyleSheet" type="text/css" href="../css/angular.css"/>    </head>    <body> -    <input name="form.required" ng-required/>  +    <input type="checkbox" name="form.checked" ng-format="boolean" value="true" checked="checked" /> +    <input ng-show="form.checked" name="form.required" ng-required/>       <hr/>      <input name="form.list" ng-format="list" ng-required/>       <input name="form.list" ng-format="list" />       <hr/>          <input type="checkbox" name="form.boolean" ng-format="boolean" value="true" checked="checked" />      <input type="checkbox" name="form.boolean" ng-format="boolean" value="true" /> -    <pre>{{form}}</pre> +    <pre> +form={{form}} +$invalidWidgets.length={{$invalidWidgets.length}} +    </pre>    </body>  </html> | 
