@kalimulhaq wrote:
I would like to @Output an Event from from Popover component to Parent component.
My Popover Component isimport { Component, OnInit, Output, EventEmitter } from '@angular/core'; @Component({ selector: 'app-order', templateUrl: './order.component.html', styleUrls: ['./order.component.scss'] }) export class OrderComponent implements OnInit { @Output() onSelection = new EventEmitter<any>(); constructor() {} ngOnInit() {} public selected() { this.onSelection.emit(); } }
Parent Component is
async sortPopover(ev: any) { const popover = await this.popoverController.create({ component: OrderComponent, event: ev, translucent: true }); return await popover.present(); }
I what to receive the onSelection event from Popover component into Parent component.
Dose any body how to do that?
Posts: 1
Participants: 1