mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-03-29 08:49:06 +08:00
consider widget errors only when widgets are visible
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user