import { Component, Input, Output, EventEmitter } from '@angular/core'; @Component({ selector: 'parent-component', template: ` Parent Input text: {{ parentText }} Output : Click here !