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
Post a Comment