-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
md-dialog: pass additional content #2707
Comments
@ciesielskico You should grab the componentInstance to pass the data in:
|
Looks hacky but I'll try this, thanks. Still, I think there should be a more elegant and straightforward way to do the same. |
Closing as a duplicate of #2181 which has a pending PR. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug, feature request, or proposal:
Feature request
What is the expected behavior?
I would like to pass a string to the dialog when opening it with
this.dialog.open(...)
to be displayed in the dialog itself.What is the current behavior?
I can't pass additional data directly to the dialog.
What is the use-case or motivation for changing an existing behavior?
I can pass data using an additional service, but that seems overkill when I just want to pass a string.
Currently, you can set options for the dialog, it would be nice to have a
data
field in there to pass additional content along.The text was updated successfully, but these errors were encountered: