angular - How to stop execution while showing alert with Ionic 2 -


i showing alert using

    import {alert, navcontroller} 'ionic/ionic';     .............     var alert = alert.create({ .....     .....     });     nav.present(alert)     console.log('fooo'); //this gets executed before 'ok' clicked or alert closed 

it shows up, execution of next lines not halted in generic alert. workaround ?

i don't know use alert. alerts used leverage promises. mean when click on "ok" button in alert, corresponding promise resolved. move code of next lines callback set on promises.

i more precise provide 1 line of code without other hints ;-)

hope helps nevertheless. thierry


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -