Use the data property to pass parameters when opening a Dialog, the internal component can later access this data using dialogRef.
Similarly when hiding a Dialog, any parameter passed to the close function is received from the onClose callback.