-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
docs(dialog): add new option and update example #1814
Conversation
@@ -12,8 +12,8 @@ MdDialog is a service, which opens dialogs components in the view. | |||
|
|||
| Key | Description | | |||
| --- | --- | | |||
| `viewContainerRef: ViewContainerRef` | The view container ref to attach the dialog to. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't remove this because it is still an option, but it is optional.
|
||
this.dialogRef = this.dialog.open(PizzaDialog, config); | ||
this.dialogRef = this.dialog.open(PizzaDialog, { | ||
role: 'alertdialog' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be alertdialog
since that's not appropriate to the content being opened.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I was going for was to show that you can pass in an object, but I didn't want people copying the config over with something like disableClose: true
. Having disableClose: false
seemed redundant.
* Mentions the `disableClose` option in the readme. * Updates the dialog readme and dialog demo not to use the `viewContainerRef` since it's not necessary anymore.
7916f34
to
1999a51
Compare
Re-added the |
LGTM |
some bug when dbclick around dialog |
There should be a fix for this one in master @vasyliv. I could reproduce this in the Plunkr, but not locally. |
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. |
disableClose
option in the readme.viewContainerRef
since it's not necessary anymore.