El fin de @Input() y @Output(): Angular 20 lo cambia todo

Explora Angular 20 con Signals nativos: reemplaza @Input/@Output por input(), output() y model() para un flujo de estado reactivo y binding bidireccional. Descubre beneficios y ejemplos.

24 sept 2025 • 3 min read • Q2BSTUDIO Team

Inteligencia-Artificial-

Durante años los desarrolladores Angular han confiado en @Input() y @Output() para la comunicación entre componentes padre e hijo. Aunque funcionales, estos decoradores añadían mucho boilerplate y podían generar flujos de estado enmarañados en aplicaciones grandes. Con Angular 20 eso cambia radicalmente: el framework adopta Signals nativos y presenta la API model() para un flujo de estado más limpio y reactivo.

Por qué moverse lejos de @Input y @Output. Demasiada ceremonia al definir propiedades separadas para entrada y salida. Fácil generar spaghetti state en proyectos grandes. No están alineados con las nuevas primitivas reactivas Signals que propone Angular.

Angular 20 entradas y salidas con Signals. En lugar de decoradores Angular 20 ofrece funciones para definir bindings de componente: input() reemplaza a @Input(), output() reemplaza a @Output() y model() combina entrada y salida en un único binding bidireccional.

Ejemplos de código antiguos y nuevos. Vieja forma Angular 19 con @Input y @Output. // child.component.ts import { Component, Input, Output, EventEmitter } from @angular/core; @Component({ selector: app-child, template: <p>{{ title }}</p> <button (click)=notify()>Notify Parent</button> }) export class ChildComponent { @Input() title!: string; @Output() notifyParent = new EventEmitter<string>(); notify() { this.notifyParent.emit(Hello from Child!) } } // parent.component.ts @Component({ selector: app-parent, template: <app-child [title]=parentTitle (notifyParent)=onNotify($event)></app-child> }) export class ParentComponent { parentTitle = Parent says Hi!; onNotify(msg: string) { console.log(msg) } }

Nueva forma Angular 20 con Signals. // child.component.ts import { Component, input, output } from @angular/core; @Component({ selector: app-child, template: <p>{{ title() }}</p> <button (click)=notify.emit(Hello from Child!)>Notify Parent</button> }) export class ChildComponent { title = input<string>(); notify = output<string>(); } // parent.component.ts @Component({ selector: app-parent, template: <app-child [title]=parentTitle (notify)=onNotify($event)></app-child> }) export class ParentComponent { parentTitle = Parent says Hi!; onNotify(msg: string) { console.log(msg) } }

Two way binding con model. // child.component.ts import { Component, model } from @angular/core; @Component({ selector: app-child, template: <input [value]=title() (input)=title.set($any($event.target).value) /> <p>You typed: {{ title() }}</p> }) export class ChildComponent { title = model<string>( ) // two way bound } // parent.component.ts import { Component } from @angular/core; @Component({ selector: app-parent, template: <h2>Parent Component</h2> <app-child [(title)]=parentTitle></app-child> <p>Parent Value: {{ parentTitle }}</p> }) export class ParentComponent { parentTitle = Hello World }

Por qué esto importa. Menos boilerplate y código más legible. Enlace bidireccional nativo con model(), arquitectura reactiva alineada con Signals, mejor experiencia de desarrollo y mejoras de rendimiento en aplicaciones a medida. En Q2BSTUDIO somos una empresa de desarrollo de software y aplicaciones a medida, especialistas en inteligencia artificial, ciberseguridad y servicios cloud. Ofrecemos soluciones completas que incluyen aplicaciones a medida y software a medida, servicios cloud aws y azure, servicios de inteligencia de negocio y power bi, agentes IA e ia para empresas. Si necesitas desarrollar una solución personalizada visita nuestra página de desarrollo de aplicaciones y software a medida y para proyectos de inteligencia artificial consulta nuestros servicios de inteligencia artificial.

Conclusión. Angular 20 redefine la manera en que los componentes se comunican. input(), output() y sobre todo model() reducen la necesidad de @Input y @Output y llevan a Angular hacia un ecosistema totalmente reactivo. En Q2BSTUDIO adaptamos estas nuevas prácticas en proyectos reales para crear software a medida, integrar inteligencia artificial, asegurar ciberseguridad y desplegar en servicios cloud como AWS y Azure, siempre con foco en escalabilidad y resultados medibles.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Artificial intelligence

AI agents, chatbots, and intelligent assistants that automate tasks and serve your customers 24/7 to improve the efficiency of your business.

More info

Software Development

Web, mobile, and desktop applications, intranets, e-commerce, SaaS, and management platforms designed for your company's specific needs.

More info

Cloud services

Migration, infrastructure, managed hosting, high availability, and security on Microsoft Azure and Amazon Web Services to help your business scale without limits.

More info

Cybersecurity and pentesting

Security audits, penetration testing and protection of applications, data and infrastructure on-premise and cloud, with ethical hacking and regulatory compliance.

More info

Business Intelligence

Dashboards and data analysis with Power BI: we integrate your sources, design dashboards and KPIs and turn your data into decisions.

More info

Process automation

We automate repetitive tasks and connect your applications with n8n, Power Automate, Make, and RPA, eliminating manual work and increasing productivity.

More info

Training for Companies

We train your teams in technology with criteria: web development, databases, Git, best practices and security, automation with n8n, artificial intelligence for companies and creation of AI solutions with Azure AI Foundry.

More info

Code Auditing

We audit the code that you, your team or an AI create: we tell you what is good and what to improve, we secure it and make it ready for production, web or app.

More info

AI Image Generation

We create for you the images that your business needs with artificial intelligence: product, networks, advertising, illustration and avatars. You tell us what you want and we deliver it ready to use.

More info

AI Video Generation

We create videos with artificial intelligence for you: promotional, networking, virtual presenters, dubbing and animations. You tell us the idea and we will deliver it assembled and ready to publish.

More info

AI Conversational Avatars

We create conversational avatars with AI – digital humans with a face and voice – that serve your customers and teams with the knowledge of your company, on your website, interactive monitors, WhatsApp or Teams.

More info

Online Marketing and AI

Google Ads, Meta Ads, LinkedIn Ads and AI Engine Positioning (GEO/AEO): we attract customers and make your brand appear where they search for you, also on ChatGPT, Gemini and Perplexity.

More info

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.

Live Chat