@obinnae wrote:
Ionic 3 app: Is it possible to create a popover without passing in a component containing the menu? In other words, in this code…
this.popoverController.create({ component: popupComponent, // <-- Can this be replaced with variable containing the HTML? ... })is there a way to declare a local variable with the menu’s HTML and pass it as the ‘component’ parameter? Something like …
var menuHTML='<ion-list> <ion-item>Edit</ion-item> <ion-item>Log out</ion-item>'; this.popoverController.create({ component: menuHTML ... })Thanks.
Posts: 1
Participants: 1