Summary
In this chapter, we explored Angular forms and how to use them to improve our user experience and our team’s productivity. We learned how to use template forms for simpler requirements and explored how Angular performs the binding between the HTML and the data model using the ngModel
object.
We also work with reactive forms, which opens up many possibilities for creating and manipulating forms. Regarding reactive forms, we studied how to apply validations to fields and how to create our own custom validation functions. Finally, we refactored our reactive form to use TypeScript type checking using typed forms.
In the next chapter, we will explore Angular’s routing mechanism and the possibilities it can have for our applications.