DEV Community

Cover image for Be ready for input signals in Angular

Be ready for input signals in Angular

Nicolas Frizzarin on January 10, 2024

Introduction With the release of Angular 17, the signals have become stable. As a reminder, a signal is a wrapper around a value that c...
Collapse
 
nicojs profile image
Nico Jansen

I think some of the code examples have a small typo. Shouldn't the signal in the parent be executed when a string is expected in the child component?

template: `<app-child [name]="name()" />`
Enter fullscreen mode Exit fullscreen mode
Collapse
 
teej107 profile image
teej107

Input signals look pretty cool but what would the advantage be using them over plain input decorators? The only advantage I can think of is that input signals are readonly.

Other than that, Angular triggers change detection when inputs change anyway so it seems like whether to use plain input decorators, inputs as setters, or input signals doesn't matter anyway.

Collapse
 
artydev profile image
artydev

than you :-)

Collapse
 
jangelodev profile image
João Angelo

Hi Nicolas Frizzarin,
Your article is very cool
Thanks for sharing