Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

243
Views
Advantage of using @Output instead of using @Input which accepts a function in Angular

What is the advantage of using @Output property = new EventEmitter(); decorator with the event emitter instance when the same functionality can be achieved with @Input property: () => void

and then can pass the method from the parent class,

<selector [property]="parentMethod()">

Also, while doing output binding when @Output decorator is used,

<selector (property)="parentMethod()">

Does it internally subscribe to property event emitter instance? This only seems to be beneficial when Angular is using the same instance of a component class at multiple places (does this happen? ), couldn't think of any other reason.

Would like to understand the work which Angular is doing behind the scene and which of the above-mentioned approach is better and why?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!