Вキ
1) templateA.html
(eventFromChildComponent)="one($event)"
templateA.tspublic function one($event: A)
2) templateBhtml`(eventFromChildComponent)="two($event)"
templateB.tspublic function two($event: B)
3) childComponent.ts@Output() public eventFromChild: EventEmitter<(A | B)> = new EventEmitter();