require(['px-libs/bootbox', 'px-bootstrap/modal'], function(bootbox) {
...
});
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',
],
},
]);