Forms Support
You can use the TextBox in template-driven or reactive forms.
Template-Driven Forms
The following example demonstrates how to use the component in template-driven forms by using the ngForm
directive.
Reactive Forms
The FormGroup
provides a way to render reactive forms. For more details, refer to the Angular Documentation.
The following example demonstrates how to use the TextBox in a reactive form.
FormField Association
The following example demonstrates how to use the TextBox within a FormField component and provide hint and error messages.