© Mark Clow 2018
Mark ClowAngular 5 Projectshttps://doi.org/10.1007/978-1-4842-3279-8_12

12. More Components

Mark Clow1 
(1)
Sandy Springs, Georgia, USA
 

The purpose of this chapter is to enhance your knowledge of components further with more advanced topics.

Components and Child Components

As you know, a component is a building block in a user interface. An Angular application always has an Application (or root) component. This component (like other components) has a tag in the HTML, and Angular bootstraps into that component. This Application component (like other components) can contain other (child) components.

So, components can contain other components. This is known as composition . As I put it in an earlier chapter, components are like LEGO bricks ...

Get Angular 5 Projects: Learn to Build Single Page Web Applications Using 70+ Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.