In Angular, components communicate to each other to share data such as object, string, number, array or html. Parent and Child Components can communicate to each other in following ways Parent and Child Components can communicate to each other in following ways @Input() @Output() Temp Ref Variable ViewChild and ContentChild You can learn aboutContinueContinue reading “Video – Step by Step Component Communications in Angular”
Tag Archives: Input
Communication Between Components Using @Input() in Angular
In Angular 2 a component can share data and information with another component by passing data or events. A component can be used inside another component, thus creating a component hierarchy. The component being used inside another component is known as the child component and the enclosing component is known as the parent component. ComponentsContinueContinue reading “Communication Between Components Using @Input() in Angular”