Chapter 1: Winning Components 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 how to create a dynamic Angular component in this chapter.
The following are the recipes we're going to cover in this chapter:
- Components communication using component @Input(s) and @Output(s)
- Components 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 using ViewChild ...
Get Angular Cookbook 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.