Components are the building blocks of an Angular application. Components bring reusability to a view. Imagine a view that presents user profiles and order information in the sample application that we are building (a superhero profile). We might need to present the same data in many places. Instead of duplicating the code in each instance, let’s create a component and reuse it.
This chapter introduces Angular components. It covers creating new components. An Angular application needs metadata that describes a component. Metadata defines how we use the component in the application. ...