diff options
| author | Misko Hevery | 2010-12-01 20:29:54 -0800 |
|---|---|---|
| committer | Misko Hevery | 2010-12-02 22:45:57 -0800 |
| commit | 5a8ad8fe329fc09898ff43a060710265d38393be (patch) | |
| tree | 95058036d40b1dd993e2a9c4094ebd34b2751707 /regression | |
| parent | 41d5938883a3d06ffe8a88a51efd8d1896f7d747 (diff) | |
| download | angular.js-5a8ad8fe329fc09898ff43a060710265d38393be.tar.bz2 | |
Closes #170. Corrected the behavior of select when options are ng:repeated
- Delete $postEval method, as it was a hack
Diffstat (limited to 'regression')
| -rw-r--r-- | regression/issue-170.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/regression/issue-170.html b/regression/issue-170.html new file mode 100644 index 00000000..392abf81 --- /dev/null +++ b/regression/issue-170.html @@ -0,0 +1,28 @@ +<!DOCTYPE HTML> +<html xmlns:ng="http://angularjs.org"> +<head> + <script type="text/javascript" src="../lib/jquery/jquery-1.4.2.js"></script> + <script type="text/javascript" src="../src/angular-bootstrap.js" ng:autobind></script> +<head> +<body> + <select name='selection0' style="display:block;"> + <option ng:repeat='value in ["FOO","BAR"]'">{{value}}</option> + </select> + {{selection0}} <-- FOO should be shown here + + <hr/> + + <select ng:init="selection1='ignore'" name='selection1' style="display:block;"> + <option ng:repeat='value in ["FOO","BAR"]' ng:bind-attr="{selected:'{{value==\'BAR\'}}'}">{{value}}</option> + </select> + {{selection1}} <-- BAR should be shown here + + <hr/> + + <select ng:init="selection2=1" name="selection2" style="display:block;"> + <option value="{{$index}}" ng:repeat="opt in ['zero', 'one']">{{opt}}</option> + </select> + {{selection2}} <-- 1 should be shown here + +</body> +</html>
\ No newline at end of file |
