Рет қаралды 3,648
In Angular, we often need our child component to emit notifications to its parent component. Previously, we've used @Output properties for these notifications.
Starting in Angular version 17.3, we now have a new output API. Note that the new output is NOT a signal. So why did the Angular team define a new output API as part of its signal-ification of Angular?
In this video, we examine the new output API and outline its benefits.
*Links*
KZbin video "Angular's New Signal Inputs": kzbin.info/www/bejne/r5umlpSfjL12Zrc
KZbin video "Angular's New Model Inputs: Two-way Communication with your Child Components": kzbin.info/www/bejne/nKO7enWBpt-HgZI
Code: stackblitz.com/edit/output-deborahk
*Content*
00:00 Angular's new output API
01:18 Sample application
02:29 @Output property
04:07 Receiving notifications from the child component
05:58 Using the new output API
06:57 Aliasing an output
07:39 Using an effect to emit the notification
08:47 Benefits of the new output API
09:27 Wrap up
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
😊About Me
Hey! I'm Deborah Kurata
I'm a software developer and KZbin content creator. I speak at conferences such as VS Live and ng-conf. I write articles for freeCodeCamp. And I'm a Pluralsight author with courses in the top 10 most popular (out of 7,000+) over the past 5 years. For my work in support of software developers, I've been recognized with the Microsoft Most Valuable Professional (MVP) award, and I'm a Google Developer Expert (GDE).
Contact me on Twitter: DeborahKurata
Find my Pluralsight courses: www.pluralsight.com/profile/author/deborah-kurata
Access my freeCodeCamp articles: www.freecodecamp.org/news/author/deborah-kurata/
View my KZbin content: www.youtube.com/@deborah_kurata
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
#angular
#bestpractices
#angulartutorial
#angularparentchild
#componentcommunicationinAngular
#angularcomponentcommunication
#angularcomponentinteraction
#angularsignalinputs
#outputAPIsangular
#angular17.3output
#angularoutput
#angularnewoutputapi
#angularoutputproperty
#outputdecorator