I am experimenting with forms in Angular 2 RC4. It\'s all working fine but when I start the app the browser console gives me this message:
*It looks like you\'re
You need to explicitly disable the deprecated form support when bootstrapping your application:
import {disableDeprecatedForms, provideForms} from '@angular/forms';
bootstrap(AppComponent, [
disableDeprecatedForms()
provideForms()
]);
Whereas FormBuilder
isn't deprecated, you can use directly the FormGroup
class instead:
this.filterForm = new FormGroup({
title: new FormControl('', Validators.required)
});