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

8. Introducing Components

Mark Clow1 
(1)
Sandy Springs, Georgia, USA
 

An Angular component is similar to an AngularJS Controller. A component is basically markup, meta-data, and a class (containing data and code) that combined together create a UI widget. Components are the main tools we use to build an interactive UI with. All Angular applications have a root component, often called the application component .

Angular provides ways for components to pass data to each other and to respond to each other’s events. We’ll get into component inputs and outputs in Chapter 12.

You can write a component and use it as a child component in several other components—they ...

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.