===== Component Interaction ===== ==== From the parent component To the child component ==== 1.Parent Component 2.Child Component export class TestComponentInteractionComponent implements OnInit { //@Input() public parentData; @Input('parentData') public name; constructor() { } ngOnInit() { } } ==== From the child component To the parent component ==== 1.child component

Hello {{ name }}

export class TestComponentInteractionComponent implements OnInit { @Input('parentData') public name; @Output() public childEvent = new EventEmitter(); constructor() { } ngOnInit() { } firstEvent(){ this.childEvent.emit('Hey Taekgu'); } } 2.parent component
Child message: {{ message }}