How to call $modal.openfrom controller in angular js. Previously in the ui-bootstrap 0.1.0 dialog box. Now in the current version, that person is to trigger your dialogue.
at 0.1.0 it was just $ dialog.dialog (); Then call Dialog (); in lib -
return {
dialog: function(opts){
return new Dialog(opts);
},
messageBox: function(title, message, buttons){
return new Dialog({templateUrl: 'template/dialog/message.html',
controller: 'MessageBoxController', resolve: {model: {
title: title,
message: message,
buttons: buttons
}}});
}
Can anyone find out how to call $ modal.open in 0.10.0?
source
share