In the child component:
import { Component, OnInit, EventEmitter, Output } from '@angular/core';
... in the body of the class:
@Output() onMyEvent = new EventEmitter<boolean>();
... event call
this.onMyEvent.emit(true);
In the template:
<child-component (onChildEvent)="onEvent.emit($event)">
</child-component>
In the parent component:
onChildEvent(boolean){
alert("Event now!");
}