Components and Pages
The main building blocks of an Angular application are the components. It is by using them that we assemble our user interfaces and define the flow of the experience. In Angular architecture, components organize an application into reusable parts, making it easy to maintain and scale.
In this chapter, we will explore the communication between components and thus assemble our pages using component composition, avoiding the anti-pattern of creating monolithic interfaces.
In this chapter, we’re going to cover the following topics:
- Creating components
- Communication between components – inputs and outputs
- Best practice – using the
TrackBy
property - Separating responsibilities – smart and presentation components
- Communication from the child component – using
@Output
By the end of this chapter, you will be able to create reusable and easy-to-maintain components and pages, streamlining the development...