Chapter 5: Angular Components: Inputs and Outputs

by David Aden

In this article, we’ll take a look a bit closer at Angular components — how they’re defined, and how to get data into them and back out of them.

In the previous chapter we covered the basic idea of components and decorators, and have specifically seen the @Component and @View decorators used to build an Angular application. This article dives in a bit deeper. However, we can’t cover everything about components in a single article, so future articles will take up other aspects of Angular components.

Example Code

The code for this article and the other articles in the series is available as in the angular2-samples repo. You can also see the samples running at: http://angular2-samples.azurewebsites.net/ ...

Get Learn Angular: Your First Week 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.