I am getting the bellow error when I tried to implement Popover:
ORIGINAL EXCEPTION: TypeError: Cannot read property ‘create’ of undefined
Here is my code:
import {Popover, Page, NavController, MenuController, NavParams} from 'ionic-angular';
@Component({
template: 'This is a popover'
})
class MyPopover{}
export class HomePage {
constructor(nav, http, navParams) {}
//PopOver
showPopover(ev){
let popover = Popover.create(MyPopover);
this.nav.present(popover, {
ev: ev
})
}}
Anyone why I am getting this, I believe that there is an issue while importing ‘Popover’ as I am doing the below just after importing Popover:
console.log("Popover object : ",{Popover})
I am getting undefined
so mostly the issue is there.