Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

If a <select> contains <option> generated ONLY with ng:repeat the value of the default selection isn't propagated #170

Closed
pmurias opened this issue Nov 27, 2010 · 1 comment

Comments

@pmurias
Copy link

pmurias commented Nov 27, 2010

This example illustrates the problem

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 
"http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:ng="http://angularjs.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 
    <title> Dialogue editor </title>
    <script type="text/javascript"
        src="http://angularjs.org/ng/js/angular-debug.js" ng:autobind>
    </script>
<head>
<body>

    <select ng:init='options = ["FOO","BAR"]'  name='foo' style="display:block;">
        <option ng:repeat='option in options'>{{option}}</option>
    </select>
    {{foo}} <-- FOO should be shown here
</body>
</html>
@mhevery
Copy link
Contributor

mhevery commented Dec 3, 2010

Closed by fd436d2c528ea2c86306d2438d7bad60e1a7d474. Corrected the behavior of select when options are ng:repeated

  • Delete $postEval method, as it was a hack

groner pushed a commit to groner/angular.js that referenced this issue Apr 20, 2011
… ng:repeated

 - Delete $postEval method, as it was a hack
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants