Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49526

Popover without separate component file

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 49526

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>