You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
[X] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
Dynamically creating radio buttons with dynamic 'name' fields which contain more than one binding expression will not have the correct default values set.
e.g. within a nested ng-repeat: <input type="radio" name="{{ expression1 }} {{ expression2 }}" ng-model="vm.radioModel[$index]" ... />
(Only the last radio button is selected.)
While using a combined expression will function correctly: <input type="radio" name="{{ expression1 + expression2 }}" ng-model="vm.radioModel[$index]" ... />
Expected behavior
The default values for the radio options should be set according to the initially bound ng-model.
Here is an example plunker demonstrating the correct functioning of the same example, but using only one combined expression (e.g. name="{{ expression1 + expression2 }}): Correct default values set (plunker)
Please tell us about your environment:
Windows 10 64bit