output has to be eventemitter angular code example Example: emitter angular <component (open)="open($event)" ></component>