1
Winning Component Communication
In this chapter, you’ll master component communication in Angular. You’ll learn different techniques to establish communication between components and will learn which technique is suitable in which situation. You’ll also learn about the new Signals API, which is stable since Angular v17, in this chapter.
The following are the recipes we’re going to cover in this chapter:
- Component communication using component @Input and @Output properties
- Component communication using services
- Using setters for intercepting input property changes
- Using ngOnChanges to intercept input property changes
- Accessing a child component in a parent template via template variables
- Accessing a child component in a parent component class ...
Get Angular Cookbook - Second Edition 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.