4 Component basics

This chapter covers

  • The basics of components and their role
  • The @Component decorator and its most important properties
  • Rendering a component
  • Passing data into and out of a component using inputs and outputs
  • Customizing components with templates and styling
  • Injecting content into a component using projection

Components are so central to how Angular applications are structured that almost every feature is somehow linked to them. It’s impossible to make an Angular application without a component, after all. This means being able to harness the capabilities of components is vital to any developer. They are so important, I’ve dedicated the next chapter to additional, more advanced topics involving components.

You saw a couple ...

Get Angular in Action 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.