You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 29, 2019. It is now read-only.
Although it is rather useful to have message box functionality easily available, I think it would be cleaner to separate it out into its own service that happens to rely on $dialog. Then the API would be easier to use. Also, if you didn't need the message box service, you wouldn't need to include its module or its template.
Instead of:
var myDialog = $dialog.dialog({ ... some options ... });
myDialog.open();
and
var myMessageBox = $dialog.messageBox(title, message, buttons);
myMessageBox.open();
You could have $dialog and $messageBox services:
var myDialog = $dialog({... some options ...});
myDialog.open();
and
var myMessageBox = $messageBox(title, message, buttons);
myMessageBox.open();