I must say I am totally confused by the different tutorials on the web about RC5 Angular forms. The official documentation does not clear up the confusion either.
The abundance of directives (ngForm, ngModel, ngFormControl, ngControl, ngFormControlName, ngControlName, did I miss anything?) some are deprecated, some are not.
Plus, all the tutorials go the easy path - plain text inputs or select controls. And if I need radio buttons and checkboxes?
In short, I have no idea how to write forms in RC5.
Is there an example somewhere, that is up-to-date and explains:
- The usage of the 4 basic controls - input text/radio/checkbox and select?
- The extra goodies, like dirty/pristine, validation?
- The form model (FormBuilder, FormGroup, FormControl, etc...)
P.S.
What I read?
- https://angular.io/docs/ts/latest/guide/forms.html
- https://scotch.io/tutorials/using-angular-2s-template-driven-forms
- https://scotch.io/tutorials/using-angular-2s-model-driven-forms-with-formgroup-and-formcontrol
- https://angular.io/docs/ts/latest/cookbook/dynamic-form.html
- http://blog.rangle.io/how-angular-2-form-models-work/
- http://blog.rangle.io/data-angular-2-forms/
I am probably stupid, but I still do not know what is the right way to write forms in RC5.