-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
ngModel and btnRadio #66
Comments
at the moment custom controls are tricky, so: [ngModel]="option.value"
(ngModel)="filterChanged(option.value)" but this one, should: here is one of the options how to handle changed value |
@pho3nixf1re did it helped you? |
I ended up rolling my own component to handle this and avoid 2-way binding completely. |
I have the same problem using angular 2.0.0.rc2.
I use following template
I import and use following directives
The same code works good with rc1. Here are the packages, that i use:
} |
@eugene1985 This is because @angular/forms is not supported at the moment. But It will be as soon as this PR is merged: #631 |
Hello, I have this "dependencies": { and using example from official sites and problem occurs Thanks |
@martinsvb show your app bootstrap and ngModel import |
It's strange. |
When using btnRadio with ngModel on current angular 2.0 beta-0 I get the following error.
The relevant code copies the example on the demo site.
If I add
ngDefaultAccessor to the
then the error goes away but the buttons do not toggle or fire the
ngModel` event. WTF is happening here?The text was updated successfully, but these errors were encountered: