input output decorator in angular | Share data between components | output decorator in angular
In Angular, @Input and @Output are decorators used to create bindings between parent and child components to facilitate communication.
@Input:
The @Input decorator is used to expose a property of a child component so that it can accept values from its parent component.
It allows data to flow from the parent component to the child component.
To use @Input, you decorate a property in the child component with it and then pass data to that property from the parent component's template.
@Output:
The @Output decorator is used to create custom events in a child component that the parent component can listen to.
It allows data or events to flow from the child component to the parent component.
To use @Output, you decorate a property in the child component with it and emit events from that property.
These decorators are essential for building interactive and modular Angular applications by facilitating the exchange of data and events between components
Stackblitz Link:-
https://stackblitz.com/edit/angular-1...
You can watch our previous videos:-
Angular Architecture:
• angular architecture | angular archit...
Angular features:
• angular features | angular features h...
Angular & Typescript
• angular | angular hindi | typescript ...
Create a Angular16 Application
• Angular 16 Project | How to create an...
Angular Directive and CustomDirective
• Types of Directives in angular | Cust...
Angular Pipe and How to create custom pipe.
• Angular Pipes | Custom Pipe | Angular...
You can follow us on Instagram
https://instagram.com/angnet_coding?i...
@input decorator
@output decorator
sharedatabetweencomponents
angular
angularforbeginners
angularproject
angulangulartutorial
learnangular
angularcourse
typescripttutorial
typescript
#angulardecorators
#sharedatabetweencomponents