4 New capabilities of Angular building blocks
This chapter covers
- Supercharging input properties to make them required, transform their values, or bind them to routing parameters
- Using host directives to compose new directives from existing ones
- Switching to type-safe reactive forms to ensure the best interaction with TypeScript and improved developer experience, coupled with other improvements to forms
- Improving image load time by using the new
NgOptimizedImage
directive - Using fetch-based backend instead of XHR in HTTP requests
Previously we covered some changes in Angular that could be deemed quite revolutionary—changes that affected entire applications and their structure and even changed the nature of some building blocks (like functional route guards, which we covered in the previous chapter). Now it is time we go a level deeper and familiarize ourselves with some improvements that aim at reducing boilerplate and improving performance, as well as bettering our code quality on a more local magnitude.