Sitemap

Angular 22 Modern Component Communication

4 min readAug 3, 2026

--

Angular 22 Signals Series — Part 1

Press enter or click to view image in full size

Angular components are the foundation of every Angular application. As applications grow, communication between components becomes one of the most important architectural decisions.

A parent component needs to send data to a child component.

A child component needs to notify the parent about user actions.

Sometimes both components need to share and update the same value.

For many years, Angular developers solved these problems using:

  • @Input()
  • @Output()
  • EventEmitter

This approach has powered Angular applications for years and still works today.

However, Angular is moving toward a signal-based architecture.

Modern Angular introduces new component APIs:

input()
output()
model()

These APIs provide:

  • Better type safety
  • Less boilerplate code
  • Built-in reactivity
  • Cleaner component APIs
  • Better developer experience

In this article, we will understand the traditional approach and why Angular introduced Signal-based component communication.

Understanding Component Communication in Angular

Angular components communicate mainly in three ways:

1. Parent → Child Communication

A parent component passes data to a child component.

Example:

Parent Component
|
|
↓
Child Component

Traditional Angular uses:

@Input()

2. Child → Parent Communication

A child component sends events back to the parent.

Example:

Child Component
|
|
↓
Parent Componen

Traditional Angular uses:

@Output()
EventEmitter

3. Two-Way Communication

Both parent and child can update the same value.

Example:

Parent  <------>  Child

Traditional Angular uses:

@Input()
+
@Output()

The Traditional Angular Approach

Before Signal APIs, Angular developers commonly created components like this.

Parent Component

import { Component } from '@angular/core';

@Component({
selector: 'app-root',
template: `
<app-user-card
[username]="userName">
</app-user-card>
`
})
export class AppComponent {
userName = 'Angular Developer';
}

The parent passes data using property binding:

[username]="userName"

Using @Input() for Parent to Child Communication

Child component:

import { Component, Input } from '@angular/core';

@Component({
selector: 'app-user-card',
template: `
<h2>
{{ username }}
</h2>
`
})
export class UserCardComponent {

@Input()
username!: string;

}

The data flow looks like:

  AppComponent
|
|
↓
username
|
|
↓
UserCardComponent

The child receives the value but does not own the data.

Child to Parent Communication with @Output()

Now imagine a child component has a button.

When the user clicks the button, the child needs to inform the parent.

The traditional solution:

@Output()
selected =
new EventEmitter<string>();

Example:

import { Component, Output, EventEmitter } from '@angular/core';

@Component({
selector:'app-user-card',
template:`
<button (click)="selectUser()">
Select
</button>
`
})
export class UserCardComponent {

@Output()
selected =
new EventEmitter<string>();

selectUser(){
this.selected.emit('Angular');
}

}

The child emits an event:

 Child Component
|
|
↓
emit()
|
|
↓
Parent Component

Parent Listening to Child Events

Parent template:

<app-user-card
(selected)="handleSelection($event)">
</app-user-card>

Parent component:

handleSelection(value:string){
console.log(value);
}

The complete flow:

Child
|
| EventEmitter.emit()
|
↓
Parent
|
| handleSelection()
|
↓
Update State

Two-Way Binding Before Signals

Angular developers often created custom two-way binding.

Example:

A custom checkbox component.

Child:

@Input()
checked = false;

@Output()
checkedChange =
new EventEmitter<boolean>();

toggle(){
this.checkedChange.emit(
!this.checked
);
}

Parent:

<app-checkbox
[(checked)]="isChecked">
</app-checkbox>

Angular internally converts this:

[checked]="isChecked"

(checkedChange)="isChecked=$event"

So a simple two-way binding required:

  • One input
  • One output
  • One EventEmitter

Limitations of the Traditional Approach

The old approach is powerful, but it has some challenges.

1. More Boilerplate Code

For simple communication, developers need multiple pieces.

Get MLGLOBTECH’s stories in your inbox

Join Medium for free to get updates from this writer.

Example:

@Input()

@Output()

EventEmitter.emit()

A small component can become verbose.

2. Input Changes Require Lifecycle Methods

When an input changes, developers often use:

ngOnChanges()

Example:

ngOnChanges(){
console.log(this.username);
}

The component needs lifecycle management only to react to data changes.

3. Type Safety Can Be Weak

A common pattern:

@Input()
data:any;

The problem:

  • No compile-time safety
  • More runtime errors
  • Harder refactoring

4. Two-Way Binding Requires Multiple APIs

Before:

@Input()
+
@Output()
+
EventEmitte

Developers had to maintain both directions manually.

Angular Signals Changed the Component Model

Angular introduced Signals to create a more reactive programming model.

Instead of manually managing:

  • lifecycle hooks
  • event emitters
  • change detection logic

Angular can track reactive state automatically.

The new component APIs are:

Signal Inputs

Replacement for:

@Input()

New:

input()

Example:

name = input<string>();

Signal Outputs

Replacement for:

@Output()
EventEmitter

New:

output()

Example:

selected = output<string>();

Model Inputs

Replacement for:

@Input()
+
@Output()

New:

model()

Example:

value = model('');

Old Angular vs Angular 22

Traditional AngularAngular 22 Signal APIs@Input() input() @Output() output() EventEmitteroutput() events@Input() + @Output() model() ngOnChanges() computed() / effect()Manual event handlingReactive updates

Why Angular Is Moving Toward Signals

Signal APIs provide:

Better Reactivity

Angular knows exactly what data changed.

Better Type Safety

Example:

name = input.required<string>();

Angular understands:

  • the type
  • whether the value is required
  • where the value is used

Cleaner Components

Modern Angular components become easier to understand:

export class UserComponent {
user = input.required<User>();
selected = output<User>();
checked = model(false);
}

Migration Path

Angular developers can gradually migrate:

Old Angular
@Input()
|
↓
input()

@Output()
EventEmitter
|
↓
output()

@Input()
+
@Output()
|
↓
model()

You do not need to rewrite your entire application immediately.

Angular supports both approaches.

Conclusion

Angular component communication has evolved.

The traditional:

@Input()
@Output()
EventEmitter

approach introduced Angular developers to component-based architecture.

But Angular 22 introduces a cleaner, signal-first future:

input()
output()
model()

These APIs reduce boilerplate, improve type safety, and make components more reactive.

In the next article, we will explore Signal Inputs in Angular 22:

  • How input() works
  • input.required()
  • Default values
  • Transform functions
  • Migrating from @Input() to Signal Inputs

--

--

MLGLOBTECH
MLGLOBTECH

Written by MLGLOBTECH

Creative solutions to improve your business!