Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.

$dialog service: Separate messageBox into its own service #175

@petebacondarwin

Description

@petebacondarwin

@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:

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();

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions