Do embers templates bind properties of html elements?


#1

Hi all! I have some code:

<select>
  {{#each data as |item|}}
      <option value="{{item.value}}" selected={{item.selected}}>{{item.text}}</option>
  {{/each}}
</select>

{{#each data as |item|}}
    <div>{{item.text}}:{{item.selected}}</div>
{{/each}}

I thought, when I select some option in select box, the property item.selected must change, but it does not. Why so and what do I do wrong?