These are chat archives for angular/material

20th
Nov 2018
DerrickRose1992
@DerrickRose1992
Nov 20 2018 16:04
I use an Angular library, which has a component, which uses CustomEvents to dispatch something, like this:
const domEvent = new CustomEvent('unselect', {
            bubbles: true
        });
        this.elementRef.nativeElement.dispatchEvent(domEvent);
How can I listen to this Event in the parent component?
I now it is discouraged and I should normally use Event Emitters. But I have no access to overwrite the child component and there is no Output Event defined. SO this is the only thing I could use