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
- Creating your first dynamic component in Angular