I work in durandal project.
I using the plugin dialog module.
I want to write function that show message to the user and return the dialog result.
For example:
function isValidFunc() {
dialog.show(myHtmlPage).then(function validDialogClosed(result) {
return result;
}
}
var isValid = isValidFunc();
In my example, function validDialogClosed return the result, but isValidFunc not return anything!
I want the isValidFunc to return the result.
Please, don't answer me to show the dialog out of the function isValidFunc. I need it to show it.
Thank.