1import { Component } from '@angular/core';
2import { PopoverController } from '@ionic/angular';
3import { PopoverComponent } from '../../component/popover/popover.component';
4
5@Component({
6 selector: 'popover-example',
7 templateUrl: 'popover-example.html',
8 styleUrls: ['./popover-example.css']
9})
10export class PopoverExample {
11 constructor(public popoverController: PopoverController) {}
12
13 async presentPopover(ev: any) {
14 const popover = await this.popoverController.create({
15 component: PopoverComponent,
16 event: ev,
17 translucent: true
18 });
19 return await popover.present();
20 }
21}