title: How can I get the value of the checked radio button when submitting a form using angularjs?
body: <p>I have a few forms. Each form have a few possible radio buttons and a submit button. Only one radio button can be checked (using the same name attribute for each radio). How can I get the checked radio button's value when the form is submitted, using angularjs? @blesh advised to use the same ng-model for each input, but note that the problem is that the input tags are generated using ng-repeat, and this is where the problem starts. I need, of course, naturally, only one button for a bunch of inputs. It is well described in the following plunker, after playing with @blesh 's Answer: <a href="http://plnkr.co/edit/5KTQRGdPv3dbP462vq1a?p=preview" rel="noreferrer">http://plnkr.co/edit/5KTQRGdPv3dbP462vq1a?p=preview</a> In it, you can see that the alert shows the initial value and not the current selected input.</p>