Angular University 🅰️ (@angularuniv) 's Twitter Profile
Angular University 🅰️

@angularuniv

High-quality Angular Courses. Learn and keep up with the Angular Ecosystem. Helpdesk: [email protected]

ID: 712271636305674240

linkhttps://angular-university.io calendar_today22-03-2016 13:36:06

7,7K Tweet

7,7K Takipçi

1,1K Takip Edilen

Angular University 🅰️ (@angularuniv) 's Twitter Profile Photo

🚀 Understanding Angular’s @Output is key to clean parent-child communication. Here’s a simple, powerful example: // child.component.ts @Output() myEvent = new EventEmitter<string>(); emitEvent() { this.myEvent.emit("Hello World!"); } // parent.component.html <app-child

🚀 Understanding Angular’s @Output is key to clean parent-child communication.

Here’s a simple, powerful example:

// child.component.ts
@Output() myEvent = new EventEmitter&lt;string&gt;();

emitEvent() {
this.myEvent.emit("Hello World!");
}

// parent.component.html
&lt;app-child