I need to migrate my existing Angular 2 RC 1 app to Angular 2 RC 4. As a part of which I also need to move my existing forms to Angular 2 RC 4 New Forms.
Can anyone please guide, how to update existing forms to new form.
I need to migrate my existing Angular 2 RC 1 app to Angular 2 RC 4. As a part of which I also need to move my existing forms to Angular 2 RC 4 New Forms.
Can anyone please guide, how to update existing forms to new form.
For those who are having trouble in migrating forms from Angular 2 RC 1 (or earlier) to Angular 2 RC 2 / RC 4 New Forms. Here are the steps they need to follow:
Include new forms in your project by adding below package to their packages.json:
Next, they have to disable the deprecated forms in main file and include new forms something like below:
Then in their component add import for new form directives:
Include REACTIVE_FORM_DIRECTIVES for the component:
In your component rename the following:
In your templates rename the following:
I hope this helps.