Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Angular2- RC6 Custom Form Controls not working #11479
I'm submitting a ... (check one with "x")
After updating the Angular2 application from RC5 to RC6, custom form controls stopped working. The value entered in the custom form control is not reflected in the associated model.
The associated model should reflect the value entered/selected in the custom control.
Reproduction of the problem
This plunker is using RC5. To reproduce the issue please update the version information in the systemjs.config.js is to
var ngVer = '@2.0.0-rc.6';
You will see that the selected value in the control is not reflected.
A question is already posted on StackOverflow http://stackoverflow.com/questions/39408419/angular2-rc6-custom-form-controls-not-working
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
I have noticed that
Firstly, you assign proper function to
Here is simple workaround (only for presentation purposes): https://plnkr.co/edit/MoSFkJPFdWP0fFyLyoZO?p=preview
This is a side effect of d2ad871. After this change both
IMO the situation where we want to implement
A proper work-around for this case is to implement