Bootbox http://bootboxjs.com

Bootbox.js is a small JavaScript library which allows you to create programmatic dialog boxes using Bootstrap modals, without having to worry about creating, managing or removing any of the required DOM elements or JS event handlers.

Alert

Confirm

Prompt

Custom dialog

Usage


require(['px-libs/bootbox', 'px-bootstrap/modal'], function(bootbox) {
  ...
});
        

Usage

To use Bootbox plugin, you need to include the next scripts:


<script src="path/to/js/libs/bootbox.js"></script>
<script src="path/to/js/libs/ngBootbox.js"></script>
        

Then inject the plugin into your angular application:

angular.module('yourApp', ['ngBootbox']);

Alternatively, you can include Bootbox plugin using ocLazyLoad plugin:


$ocLazyLoad.load([
  {
    name: 'ngBootbox',
    files: [
      'path/to/js/libs/bootbox.js',
      'path/to/js/libs/ngBootbox.js',
    ],
  },
]);