I was developing a SPA in Angular2 RC1 however since the final release is out now, my organisation has decided to port the code to Angular 2 GA. While I could fix most of the broken things, I am really struggling with forms.
In my earlier code with RC1, I have used ControlGroup and Control along with FormBuilder. I am using them to do the usual form stuff like validations, adding & removing controls, etc. However now apparently they have been removed and I have no idea what has replaced them.
I tried a few other classes from API guide FormControl or FormGroup but neither hasn't really helped. I would like to know what is the replacement for above two classes.
Edit: FormControl and FormGroup have eliminated the errors in TypeScript file, however, in the markup, I get inline template:0:0 caused by: No provider for FormBuilder!
error.
UPDATE: I could use FormGroup, FormControl and FormBuilder. The above error got solved by adding ReactiveFormsModule to the app.module.ts file. However, I get a error inline template:30:61 caused by: this.form._updateTreeValidity is not a function.
That specific line in the template is
<form #userForm="ngForm" (ngSubmit)="submitUser()" [formGroup]="userForm" novalidate autocomplete="off">
Any ideas?