Input output
@Input()
and @Output()
give a child component a way to communicate with its parent component. @Input()
lets a parent component update data in the child component. Conversely, @Output()
lets the child send data to a parent component.
Visit the following resources to learn more: