Examples 
Show modal 
Wait to close 
When opening a modal, a promise will be returned, which can be awaited until the modal is closed.
Return payload 
You can return any payload when closing a modal. If you close modal by clicking on background or pressing Esc an undefined value will be returned.
Using listeners 
When opening a modals you can provide listeners that will be called when components emits an event.
Fetching data 
Sometimes you might need to load extra data before displaying the modal. There is an option for that.
Confirm 
Modals are often used when displaying confirm action. There is a utility method that makes it easier.