Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Popup not working

$
0
0

@prolink007 wrote:

Popup.alert is not working using "ionic-framework: 2.0.0-alpha.42".

I am using "ionic-framework: 2.0.0-alpha.42" locally and "ionic@2.0.0-beta.15" globally in NPM.

Using this document as an example.

this.popup.alert({
    title: "New Friend!",
    template: "Your friend, Obi wan Kenobi, just accepted your friend request!",
    cssClass: 'my-alert'
}).then(() => {
    console.log('Alert closed');
});

That code is not working. I do not see a popup and i do not see "Alert closed" ever shown in the console. I pull in "popup" through the constructor.

private popup: Popup;
constructor(popup: Popup) {
    this.popup = popup;
}

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



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