-
Notifications
You must be signed in to change notification settings - Fork 26.2k
downgraded component: not possible to have two-way binding and change event on the same output / emitter #22734
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
Comments
@gkalpak I am :) I'll try come up with a fix in our local copy of the library (we have it due to another issue) and I'll prepare a PR after that. So hopefully some time this week. EDIT: I already got a fix in my fork: https://github.com/FDIM/angular/tree/bugfix/two-way-binding-and-expressions-on-same-output |
From a quick look, the fix looks good 👍 (Make sure to include some tests on the PR 😉) |
Changes would not propagate to value in downgraded component in case you had two-way binding and listening to model-change, e.g. [(model)]="value" (model-change)="fetch()" Closes angular#22734
Changes would not propagate to a value in downgraded component in case you had two-way binding and listening to a model-change, e.g. [(model)]="value" (model-change)="fetch()" Closes angular#22734
Changes would not propagate to a value in downgraded component in case you had two-way binding and listening to a model-change, e.g. [(model)]="value" (model-change)="fetch()" Closes angular#22734
After fiddling with some white space (linter is very picky!) - I think the PR is ready. I also updated existing test case and seen it break without my changes and pass with the fix. |
Thx! I'll take a look shortly. |
Changes would not propagate to a value in downgraded component in case you had two-way binding and listening to a model-change, e.g. [(model)]="value" (model-change)="fetch()" Closes angular#22734
Changes would not propagate to a value in downgraded component in case you had two-way binding and listening to a value-change, e.g. [(value)]="value" (value-change)="fetch()" Closes angular#22734
Changes would not propagate to a value in downgraded component in case you had two-way binding and listening to a value-change, e.g. [(value)]="value" (value-change)="fetch()" Closes angular#22734 PR Close angular#22772
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...
Current behavior
It seems that it is not possible to have 2-way-binding and listen to the same change event when angular 5 component is downgraded.
Expected behavior
Two way binding should work and the provided expression (if any) should be evaluated.
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
To keep downgraded component behavior similar to normal usage in other angular 5 component
Environment
The text was updated successfully, but these errors were encountered: