FellowMD’s implementation is nice; I’ve built my solution based on it. I agree with nathanhammond that the interface should be similar to html and consistent with other Ember input components, i.e. similar to
{{ input type='text' value=value }}
The problem here is that where other inputs have a single value, the radio input has both an individual value and a group value. What value
means was not clear enough for me in any of the other solutions I’ve seen, so I wrote my own:
{{ radio-button name='dish' value='spam' groupValue=selectedDish }}
{{ radio-button name='dish' value='eggs' groupValue=selectedDish }}
I’ve wrapped it up in a single file solution (!) – a templateless component (though, as of now, we still need an empty template file).