Forms Support
You can use the DateInput in Template-driven and Reactive forms.
Template-Driven Forms
The template-driven forms enable you to bind the DateInput to the model by using the ngModel
directive.
Reactive Forms
The FormGroup
decorator provides a way to render reactive forms. For more details, refer to the Angular documentation.
FormField Association
The following example demonstrates the usage of the DateInput within a FormField with hint and error messages.