Open domske opened 6 years ago
Currently you add a dialog to the screen by:
const disposable = this.dialogService.addDialog(DialogListComponent, {...}
But how set variables or call methods of the instance of the class DialogListComponent after created by the dialog service addDialog?
DialogListComponent
addDialog
use case: Change the content of a dialog from another place but the dialog itself.
Current (one) solution: Add a parameter to pass a function and call this with argument this (this dialog instance) and have access to it.
Currently you add a dialog to the screen by:
But how set variables or call methods of the instance of the class
DialogListComponent
after created by the dialog serviceaddDialog
?use case: Change the content of a dialog from another place but the dialog itself.
Current (one) solution: Add a parameter to pass a function and call this with argument this (this dialog instance) and have access to it.