How to use bootbox.js


I am making a customized popup dialog. So I will use bootbox.js. Please see.

But my bootbox dialog did not work succesfully.
Here is my js code.
$ngBootbox.alert(‘An important message!’)
.then(function() {
console.log(‘Alert closed’);

Please see following picture on phone. The dialog did not work as popup dialog. Please advice.


I myself abandoned bootbox.js for the same reasons. Not only is it a little wonky on different devices it also requires jquery. I just went with ionic’s own$ionicPopup.

It looks like you’re missing dependencies when on device. If the popup behavior isn’t happening its the .js if the popup behavior is happening but no styling then its probably bootstrap.css that’s not being loaded.

Check the network panel when inspecting to see the issue.