Invoking $mdDialog from custom bpmnjs bundle



In order to show up a $mdDialog message dialog instead of a native alert message box to show up a confirmation message when deleting an element, could you please give me some hints for the way how to require an AngularJS Material component to show up a $mdDialog in Node.js style module which will be bundled into my custom bpmn js

NB: I’m using browserify in order to bundle all required module at a app.js file which will be injected later into an Angular JS as a constant.

I already injected all AngularJS and AngularJS Material into the client side via bower.

'use strict';

var CustomModeler = require('./custom-modeler/CustomModeler');

       .constant('CustomModeler', CustomModeler);

thanks in advance.