Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

245
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda