Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Input[type=radio] - name attribute required #859

Closed
jsteenkamp opened this Issue Apr 5, 2012 · 1 comment

Comments

Projects
None yet
2 participants

I found that I have to provide a name attribute for radio inputs to correctly set the default/checked value from the model (controller scope).

Not having name attribute results in name="undefinded@undefined" being inserted by Angular (1.0.0rc3) :

This is contrary to the current docs at:
http://docs-next.angularjs.org/api/angular.module.ng.$compileProvider.directive.input.radio

Seems to be working OK in the AngularJS 1.0.2: http://jsfiddle.net/5KF4c/
Closing. @jsteenkamp feel free to reopen if you still face issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment