ankosoftware / ng2-bootstrap-modal

Library to simplify the work with bootstrap modal dialogs
MIT License
54 stars 63 forks source link

How to access the own dialog component after adding dialog to the service? #46

Open domske opened 6 years ago

domske commented 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?

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.