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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
compareWith for RadioControlValueAccessor #28486
Comments
@sclausen can you add some more detail to this? suggested use, etc |
@kara If I provide an object as my If this lines could be copied to the writeValue(value: any): void {
this._state = this._compareWith(this.value, value);
this._renderer.setProperty(this._elementRef.nativeElement, 'checked', this._state);
} I would've provided a PR, but don't know how to write a test case for this. |
I need this too. I am using The justification is the same as the following issues, but for radio buttons instead of select: Therefore it would probably be intuitive for |
There is a related issue on material which this would resolve too: angular/components#10495 |
Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends. Find more details about Angular's feature request process in our documentation. |
Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage. We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package. You can find more details about the feature request process in our documentation. |
馃殌 feature request
Relevant Package
This feature request is for @angular/forms
Description
I want to bind objects to radio button values and need an own function for comparing the ngModel with the value.
Describe the solution you'd like
I suggest the
RadioControlValueAccessor
should havecompareWith
like theSelectControlValueAccessor
.Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: