consider widget errors only when widgets are visible

This commit is contained in:
Misko Hevery
2010-02-04 13:27:56 -08:00
parent 5dd43b85e7
commit 1da18e73a4
9 changed files with 109 additions and 66 deletions

View File

@@ -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>