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 has been 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();
The text was updated successfully, but these errors were encountered:
Those $dialog and $messageBox services are really awesome but we need to do slightly better in terms of API (which is normal for the version 0.1.0). @petebacondarwin pushes it in the right direction IMO.
This issue should be considered alongside #170 which also touches dialog's API.
@typesafe & @pkozlowski-opensource & @SidhNor
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:
and
You could have
$dialog
and$messageBox
services:and
The text was updated successfully, but these errors were encountered: