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

multiple {{}} interpolations inside <option> are causing value created by ngValue to be replaced by <option>'s text #9842

@fxck

Description

@fxck

See http://plnkr.co/edit/MXxLZ5wkVj4Cq2e5qQ4e?p=preview

works fine
    <select ng-model="baz.val">
      <option 
        ng-value="foo.val" 
        ng-repeat="foo in bar">
        {{ foo.name + ' ' + foo.second_name }}
      </option>
    </select> 
ng-value replaced in this case
    <select ng-model="baz.val">
      <option 
        ng-value="foo.val" 
        ng-repeat="foo in bar">
        {{ foo.name }} {{ foo.second_name }}
      </option>
    </select> 

also it's happening only if you use ng-value, it works fine when you use value="{{ val }}", see #9840

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions