Using forms for user input is the mainstay of any frontend application. Angular framework provides a very robust API for handling forms. In Angular there are two different approaches to handling user input through forms-
- Template-driven forms
- Reactive forms
Both of these approaches for handling forms in Angular provides the functionality to-
- Capture user inputs from the UI (View)
- Validating user input
- Creating a form model and data model
- Provide a way to track changes in the form and update model accordingly.