Ionic 2: Can't dismiss Alert when displayed after Confirm

@tones411 Anthony Tietjen
Sat, 09 Jul 2016 14:02:46 +0000
ionic 2

@tones411 wrote:

I want to show an alert box after a confirm box. For example, prompt the user for confirmation before deleting, and then show the result of the call to the web service.

In the example below, the first Alert.create is presented for the confirmation. If the user clicks Yes, then the web service call is made and then I show another Alert.create.

The problem is that the second alert cannot be dismissed.

I know I should wait for the first confirm to completely go away before showing the alert results, but I'm not sure how to do that correctly. Thoughts?

Posts: 3

Participants: 2