2010-01-29 18:15:15 +00:00
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<script type="text/javascript" src="../src/angular-bootstrap.js"></script>
|
|
|
|
|
<script type="text/javascript">
|
2010-02-13 03:39:01 +00:00
|
|
|
function asyncValidate(value, callback){
|
|
|
|
|
var x = value.length % 2 ? null: "even";
|
|
|
|
|
//callback(x);
|
|
|
|
|
_(callback).delay(1000, x);
|
|
|
|
|
}
|
2010-01-29 18:15:15 +00:00
|
|
|
</script>
|
2010-02-04 21:27:56 +00:00
|
|
|
<link rel="StyleSheet" type="text/css" href="../css/angular.css"/>
|
2010-01-29 18:15:15 +00:00
|
|
|
</head>
|
2010-03-26 23:27:18 +00:00
|
|
|
<body onload="angular.compile(document).$init()">
|
|
|
|
|
|
2010-02-04 21:27:56 +00:00
|
|
|
<input type="checkbox" name="form.checked" ng-format="boolean" value="true" checked="checked" />
|
2010-03-25 21:43:05 +00:00
|
|
|
<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" />
|
2010-02-04 19:45:38 +00:00
|
|
|
<hr/>
|
2010-01-29 18:15:15 +00:00
|
|
|
<input type="checkbox" name="form.boolean" ng-format="boolean" value="true" checked="checked" />
|
|
|
|
|
<input type="checkbox" name="form.boolean" ng-format="boolean" value="true" />
|
2010-03-25 21:43:05 +00:00
|
|
|
<hr/>
|
|
|
|
|
<select name="select">
|
|
|
|
|
<option>A</option>
|
|
|
|
|
<option selected>B</option>
|
|
|
|
|
</select>
|
2010-02-04 21:27:56 +00:00
|
|
|
<pre>
|
|
|
|
|
form={{form}}
|
|
|
|
|
$invalidWidgets.length={{$invalidWidgets.length}}
|
|
|
|
|
</pre>
|
2010-01-29 18:15:15 +00:00
|
|
|
</body>
|
|
|
|
|
</html>
|