How to use bootbox.js


#1

Hello.
I am making a customized popup dialog. So I will use bootbox.js. Please see. https://github.com/eriktufvesson/ngBootbox
http://bootboxjs.com/

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.


#2

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 http://ionicframework.com/docs/api/service/$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.