@Output childEvent not initialized
I believe the problem is in your import import { EventEmitter } from 'events';
is not the one you should import here. Try changing the import to import { EventEmitter } from '@angular/core';
UPDATE
Here's a stackblitz example showing that it works
With Angular newer versions, like 8 you have to:
- Import correctly Emitter as k.s. said:
import { EventEmitter } from '@angular/core'
- Initialize the emitter for Output:
@Output() emisor = new EventEmitter<type>();