import { Component, Input, Output, EventEmitter } from '@angular/core'; @Component({ selector: 'parent-component', template: ` Parent
Input text: {{ parentText }}
Output :
`, }) export default class ParentComponent { @Input() parentText = ''; @Output() onClickParent = new EventEmitter(); }