-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ion-radio does not change value when clicking #1464
Comments
Can you set up an example? It's worth noting that directives like ion-radio have their own controller/scope, so to access vars in your state's/page's scope, you'd have to reference $parent like:
|
I think Im confused. The example shows no need to reference the parent and based on the code the directive captures the model into the scope.
|
I had the same issue and I have been playing around with the source some.
I added {{ngModel}} - {{ngValue}} to the template as text, and the model does appear before you click on the ion-radio. However, ngValue does not. It seems to me that the ngValue is not being retrieved and once you click on one of the radio icons you set the model to "". In my case, the model was already empty which made it appear as if there was nothing happening. |
I figured it out. The value was being accepted as a value not variable not as a value.
So the source needs to be changed to make it work correctly. |
When #1500 is approved and closed, this can be closed as well. |
I had the same problem but the $parent worked for me. +1 For not mentioned in the documentation - which even goes as far as to say it works exactly the same as an angular control and sends you there with a link. Is there some way I can contribute to the documentation and create a pull request? |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
When I click it does not update the model
The text was updated successfully, but these errors were encountered: