-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
select html element doesn't react to changes of model in component code. #14121
Comments
Duplicate of #13349 |
Exactly, but I am not 100% sure that the problem is only with comparison. When #13349 will be merged, I will try to use |
@pkozlowski-opensource #13349 was merged so this can be closed |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I'm submitting a ... (check one with "x")
Current behavior
select
HTML element doesn't react to changes of model (like when we dothis.selectedValue = obj;
in component, when in template we have[(ngModel)]="selectedValue"
). Therefore, initialselect
value is not proper.Expected behavior
This code should initialize value of
select
HTML element properly, i.e. listen toselectedValue
changes and select proper option.Minimal reproduction of the problem with instructions
I have the next code
choice-input.view.html
choice-input.component.ts
What is the motivation / use case for changing the behavior?
I want to make
select
html element work with objects that have structure{id:'some-id',modelId:'some-other-id'}
without any additional effort with binding/updating values from my side.Please tell us about your environment:
all
Language: [all | TypeScript X.X | ES6/7 | ES5]
TypeScript 2.1.5
Node (for AoT issues):
node --version
=7.4.0
The text was updated successfully, but these errors were encountered: